This is a migrated thread and some comments may be shown as answers.

Set Dir For a GridBoundColumn

2 Answers 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Javad Davari
Top achievements
Rank 1
Javad Davari asked on 25 Sep 2008, 06:46 AM

Hello
i can set DIR property for masterview

but i have a colummn that dir property of this column is deferent wiht Other
column

can i set dir for a GridBoundcolumn is a rad grid

Thanks
Davari

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Sep 2008, 12:18 PM
Hello Javad,

Try setting the direction of the column as shown in the code below.
cs:
 
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
    {  
        if (e.Item is GridDataItem)  
        {  
            GridDataItem dataItem = (GridDataItem)e.Item;  
            dataItem ["ColumnUniqueName"].Style.Add("direction", "rtl");  
        }  
     }  
  
 

Thanks
Princy.
0
Javad Davari
Top achievements
Rank 1
answered on 29 Sep 2008, 11:58 AM
Hello Princy
Thanks for your reply

i do this but , my grid not change

all the best
Davari
Tags
Grid
Asked by
Javad Davari
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Javad Davari
Top achievements
Rank 1
Share this question
or