I need to hide a column that is in my datasource(dataset) from the users.
I want to do this programmatically.How do i achieve it?
Set the Hidden proeprty on the column to true. The InitializeLayout event of the grid is a good place to do this.
Am afraid i dont know how to access columns,is there something like
UlraGridView1.Columns ? I dont seem to be able to access my columns.
Please copy me a line or so of code that shows how this is done.Thank You.
In the InitializeLayout event, it's better to us:
e.Layout.Bands[0].Columns[0].Hidden = true;
UlraGridView1.DisplayLayout.Bands[0].Columns[0].Hidden = true;