1st row always selected when databind

Hello, i "databind" a GridGroupingControl1 and the 1st row is always selected , and that activate the event "GridGroupingControl1_SelectedRecordsChanged"

I wouls like not selection , but be able to detect when the user selects a row.

how to ?

Thanks for you help

1 Reply

GM Gowri Manohari D Syncfusion Team November 30, 2009 04:11 AM UTC

Hi Alban,

Thank you for choosing Syncfusion Products.

1.We can turn off the first row selection on page load by using this.GridGroupingControl1.TableOptions.ListBoxSelectionMode property of the grid. Please refer the below code snippet for more details.

this.GridGroupingControl1.TableOptions.ListBoxSelectionMode = Syncfusion.Web.UI.WebControls.Shared.SelectionMode.None;

2. For the GridGroupingControl1_SelectionChanged event we need to set the below property in order select the row.

this.GridGroupingControl1.PostBackOnFocusedChanged = true;

Regards,
Gowri

Loader.
Up arrow icon