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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

unhighlighting selected rows

Thread ID:

Created:

Updated:

Platform:

Replies:

67862 Sep 1,2007 09:18 AM UTC Sep 4,2007 06:51 AM UTC WinForms 1
loading
Tags: GridControl
swaminath dhavane
Asked On September 1, 2007 09:18 AM UTC

hi,
i am using grid grouping control and i am selecting rows by clicking on row header .
So rows are getting highlighted.But now i want to deselect highligted rows in one step process by clicking n any cell .let me know what to do.

Jeba S [Syncfusion]
Replied On September 4, 2007 06:51 AM UTC

Hi swaminath,

Thank you for posting query to us.

You can handle the TableControlCellClick event and deselect the highlighted row using SelectedRecords.Clear.


void gridGroupingControl1_TableControlCellClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e)
{
if (e.Inner.RowIndex > 0 && e.Inner.ColIndex>0)
{
this.gridGroupingControl1.Table.SelectedRecords.Clear();
}
}


Please refer the sample which implements the above said feature:
http://websamples.syncfusion.com/samples/Grid.Windows/F67862/main.htm

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.

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.

Warning Icon 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.Close Icon

;