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

Accessing grid columns at runtime

1 Answer 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Naveen T
Top achievements
Rank 1
Naveen T asked on 13 May 2010, 03:08 PM
Hi,

I have created the usercontrol with radgridview in it and defined some columns for the grid,Then i have added the user control to the other page.I am able to access the properties of the grid view(like itemsource,visibilty) in the page but, when i am trying to access the column properties like IsVisible property of specific column in the page( usercontrolname.gridname.columns["columnname"].IsVisible=false ) i am getting the object reference error at runtime.I tried in creation creation of new grid by finding the gridname in usercontrol and accessing the properties still i got same object reference error.



Thanks,
Nav  

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 14 May 2010, 01:00 PM
Hi nav kum,

I have tried to reproduce your problem, but everything is working on my side. I am sending you a sample project so that you can see and test it. If there is some misunderstanding with the requirements,  please share more details about your scenario.

Best wishes,
Maya
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Naveen T
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or