We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon