Okay, this should be a no brainer, but I am using a WinGrid and binding it to results returned from a web service. I am setting the columns at design time, but during run time two additional columns are being returned from the web service. These two columns are being added to the end of the row in the WinGrid. With the web grid there is an autogeneratecolumns property that can be turned off, but I can't seem to find this in the WinGrid.
Does anyone know how to turn off this functionality?
Hi,
There is no way to prevent the grid from generating all of the columns that exist in the data source. However, you can set it up so that these columns are hidden by default: 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?
Another option is to use WinTree instead of WinGrid. The WinTree does have an AutoGenerateColumns property (on the ColmunSettings). But it lacks some other features of the grid like summaries and filtering.