I don't know what property should be used for hiding colums in DataGrid, whereas in Data Grid View we have
DataGridView1.Colums(1).Visible = False , But how can I hide (visible=false) Colums in WinGrid?Thankss
Ronald
Hi Sanjeev,
In addtion to setting the Hidden property on the column to true, you should also set the ExcludeFromColumnChooser property on the column to true.
I have different requirement here. That is I have a set a class which inherits binding list to a UltraGrid as DataSource. Hence all properties in the class are showed as columns in UltraGrid.
However I have some properties which are never required in my UltraGrid. Hence I have used column hide property to hide those columns. Though they are not showing in the table, they are listed when I open FieldChooser dialog. How do I remove these columns from FieldChooser dialog as well.
Can anyone tell How do I get this done.
Thanks in advance,
Sanjeev
Hello Hristo,
Thank you for your quick response. Perfect Thanks for your quick help
Hello Ronald,
To hide a column in UltraGrid you should use "Hide" property of the column, which you want to hide. Use the following code line:
ultraGrid1.DisplayLayout.Bands(0).Columns(“Column Key”).Hidden = True
Let me know if you have any further questions.