Hi there,
How can i use only the 2 columns i definied manually in my dataschema for the wingrid component. Now not only the 2 columns but also the other columns out of the datasource are visible. Is there an autogeneratecolumns property that i should set to false?
Greetings,
Mark (Holland-Europe)
use SetDataBinding as follow it will hide all new generated columns
ultraGrid1.SetDataBinding(datatable, null, true);
Hi Mark,
The grid must create all of the columns in the data structure. You cannot remove columns. You can hide them using the Hidden property, though. Typically, you would do this in the InitializeLayout event.
Or, if you want to do it at design-time, see this KB article: 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?