Reputation: 6446
I have a Grid with GridTemplateColumn that contains Label. the grid direction set to rtl and I want the lable's direction to be ltr. how can I do that ?
I tried:
<asp:Label style="direction:ltr" ID="Label1" runat="server" Text="Label"/>
but it didn't work
Upvotes: 2
Views: 1061
Reputation: 7272
<asp:Label ID="Foo" runat="server" dir="rtl" Text="Hello World!" />
Will dir="rtl" do the thing? See also: http://msdn.microsoft.com/en-us/library/twe16yc2.aspx
Upvotes: 0
Reputation: 15699
I believe you can create a CSS class such as
.lbl_ltr
{
direction:ltr;
}
and then
<asp:Label CssClass="lbl_ltr" ID="Label1" runat="server" Text="Label"/>
Upvotes: 2