Hi all,
Is there any way to remove all bound columns of a ultragrid?
Hi mphoenix,
Besides Mike's suggestions and questions, I want to know what do you mean by a simpler way? How many columns do you have? What is restraining you from using my approach or Mike's?
Hi,
The only alternative would be to bind the grid to a DataSource in which those columns did not exist or were not exposed. Perhaps you could create another data source that contains only the columns you want to use in the grid. Perhaps you could use UltraDataSource as an intermediary between the grid and your real data source.
What kind of DataSource are you using?
Hi Boris Toromanov, and thanks for your reply. but i have too many columns,is'n there any simplest way?
Hello,
I do not think that this is possible since the WinGrid creates the columns depending on its datasource. You could hide a column by setting its 'Hidden' property to 'true', like this:
ultraGrid1.DisplayLayout.Bands[0].Columns[0].Hidden = true;
Please do not hesitate to contact me if you need any additional assistance.