S
Santosh
dear all i want to change text direction of text box with in datagrid
control i am writting following code but it is not working.
public void SetUpClientScript(object sender, DataGridItemEventArgs e)
{
//when item type is footer
if(e.Item.ItemType == ListItemType.Footer)
{
TextBox addStateNo_TextBox =
(TextBox)e.Item.FindControl("addStateNo_TextBox");
addStateNo_TextBox.Attributes.Add("rtl","<style>input{direction:rtl}</style>");
}
//when item type is edit item
if(e.Item.ItemType==ListItemType.EditItem)
{
TextBox editStateNo_TextBox =
(TextBox)e.Item.FindControl("editStateNo_TextBox");
editStateNo_TextBox.Attributes.Add("rtl","<style>input{direction:rtl}</style>");
}
}
can any tell me what is the problem with in it.
control i am writting following code but it is not working.
public void SetUpClientScript(object sender, DataGridItemEventArgs e)
{
//when item type is footer
if(e.Item.ItemType == ListItemType.Footer)
{
TextBox addStateNo_TextBox =
(TextBox)e.Item.FindControl("addStateNo_TextBox");
addStateNo_TextBox.Attributes.Add("rtl","<style>input{direction:rtl}</style>");
}
//when item type is edit item
if(e.Item.ItemType==ListItemType.EditItem)
{
TextBox editStateNo_TextBox =
(TextBox)e.Item.FindControl("editStateNo_TextBox");
editStateNo_TextBox.Attributes.Add("rtl","<style>input{direction:rtl}</style>");
}
}
can any tell me what is the problem with in it.