hi,
I am using ultragrid. i have bind datasource property to the class object. I am having 30 properties in my class.
Out of 30 properties, I want to bind 10 property of the class to the ultragrid column at runtime.
How to bind class properties to the ultragrid column at runtime?
Any help appreciated.
The grid will create bands and columns based on the structure of the data source and there is no way to prevent this.
What you can do is use the grid's InitializeLayout event and hide the columns you don't want the user to see.
Or, you could do this: HOWTO:How can I define columns in the grid at Design-time and bind them at run-time so that some fields of the data are excluded from the grid?