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.
Unfortunately, activation email could not send to your email. Please try again.

1st row always selected when databind

Thread ID:

Created:

Updated:

Platform:

Replies:

91699 Nov 28,2009 02:49 PM Nov 29,2009 11:11 PM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Alban FAVEROT
Asked On November 28, 2009 02:49 PM

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

Gowri Manohari D [Syncfusion]
Replied On November 29, 2009 11:11 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;