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

Good day, how do I modify the properties of a <telerik: GridButtonColumn in my code behind c#?

2 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jhon
Top achievements
Rank 1
Jhon asked on 28 Sep 2012, 01:21 PM
Good morning, how do I modify the properties of a

<telerik: GridButtonColumn in my code behind?


appears when the grid <telerik: GridButtonColumn will be invisible,
however when I push the button to make visible the iré <telerik: GridButtonColumn ...

how can I perform this process?

2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 28 Sep 2012, 05:15 PM
Hello,

// Access your column here
RadGrid1.MasterTableView.Columns.FindByUniqueName(
"YourColumnUniqueName").HeaderText = "Something";

// Access your column here but after Columncreated event  or in pagePrerender, GridPrerender
            foreach (GridColumn col in RadGrid1.MasterTableView.Columns) //RadGrid1.Columns
 
            {
                if (col.UniqueName == "YourColumnUniqueName")
                {
                    GridBoundColumn bCol = col as GridBoundColumn;
                    // Acceess your column here
                }
            }

Please also try with below link.
Columns in RadGrid

Thanks,
Jayesh Goyani
0
Jhon
Top achievements
Rank 1
answered on 28 Sep 2012, 06:05 PM
Thank you Jayesh Goyani! worked properly!
Tags
Grid
Asked by
Jhon
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Jhon
Top achievements
Rank 1
Share this question
or