Row selection

Hi,

I'm using Essential Studio 6.3.0.30 with VS2008.

I'd like my gridgroupingcontrol rows stay unselected :

1) When the grid is displayed, no row must be select. After setting my datasource, I've put this in my code :

GGC_Design.Table.SelectedRecords.Clear()

But it doesn't work, the first row is selected when the grid is displayed.

2) I'd like that rows stay without selection when I click on it, just expand when I click on the plus icon.

3) I'd like to remove the column with the little black triangle.

How can I do these two last things.

Thanks a lot for your help.

LyLy


2 Replies

RS Rajarajeswari S Syncfusion Team December 3, 2008 10:13 AM UTC

Hi LyLy,

Thanks for using Syncfusion products.


1) Gridgroupingcontrol rows stay unselected


If the ListBoxSelection mode is set to None, selection will not be happened on the Grid.

this.GridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.None;

It will also remove the selection of first record, when the grid is displayed.

2) I'd like to remove the column with the little black triangle:

The column with the black triangle is called RowHeaderColumn, we can remove it using the below code snippet.

this.GridGroupingControl1.TableOptions.ShowRowHeader = false;


Please try the above and let us know if this helps you out.

Regards,
Raji




LH Lucie Houel December 3, 2008 11:05 AM UTC

Hi Raji,

It works great.

Thanks a lot.

LyLy


Loader.
Up arrow icon