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

Get columns of Grid

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
pierre-jean
Top achievements
Rank 1
Veteran
Iron
pierre-jean asked on 05 Mar 2014, 03:15 PM
I have a Grid that is bound to a Dataset that is created programmatically and the grid uses "auto-generated columns at runtime"
I need to hide some columns after databound, depending on some know conditions.
Where can I get access to the column collection ? In the Databound event the grid.columns.count is zero ...
thanks

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 06 Mar 2014, 12:06 PM
Hello Pierre-Jean,

Thank you for writing.

You can use the DataBindingComplete event of RadGridView which will get fired once the binding process is finished.

I hope this helps.

Regards,
Stefan
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
pierre-jean
Top achievements
Rank 1
Veteran
Iron
answered on 06 Mar 2014, 01:44 PM
Thanks, sometimes it's difficult to find the simple solution ...
Tags
GridView
Asked by
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Answers by
Stefan
Telerik team
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Share this question
or