GridGroupingControl without data source

Hi, How can I do the following with GridGroupingControl; 1) Programatically define n columns. 2) Add simple rows where each row has n columns without using any DataSource. 3) Enable Multiselect with Ctrl\Shift keys. I would be nice to have an example showing how this is all done programatically. Regards, Faris

1 Reply

AD Administrator Syncfusion Team April 1, 2006 08:06 AM UTC

Hi Faris, Issue 1: You can add columns by TableDescriptor / Columns collection in the property window or through the following code. this.gridGroupingControl1.TableDescriptor.Columns.Add("Column1"); Issue 2: This is not supported for a GridGroupingControl. A GridGroupingControl normally holds no data. The data comes from the datasource is just displayed in the grid. Currently it is possible to add row / record to the grid binded with datasource. Issue 3: By setting AllowSelection property you can achieve this. this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.Any; Thanks for the patience. Let us know if you need any further assistance. Best regards, Madhan

Loader.
Up arrow icon