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.
Syncfusion Feedback

Deselect selected row

Thread ID:

Created:

Updated:

Platform:

Replies:

4537 May 18,2003 09:50 AM UTC May 18,2003 03:08 PM UTC Windows Forms 3
loading
Tags: GridControl
Ramu
Asked On May 18, 2003 09:50 AM UTC

Hi, I am using GDBG. I need to deselect the row which is already selected or should not be highlighted? Can anyone throw a light on this please? Many Thanks Ram

Administrator [Syncfusion]
Replied On May 18, 2003 11:29 AM UTC

grid.Selections.Clear(); will clear all selections. If you want to remove a particular one, you can use grid.Selections.Remove, but you have to passed the GridRangeInfo exactly as it was selected. So, if it was selected as row 1, you would have to pass GridRangeInfo.Row(1).

Ramu
Replied On May 18, 2003 12:55 PM UTC

Hi Clay, Thx for your help. But actually the below code doesnt deselect it. I tried already with .selections.clear. this.gdbg1.Model.Selections.Clear(); Ram ======================== > grid.Selections.Clear(); will clear all selections. > > If you want to remove a particular one, you can use grid.Selections.Remove, but you have to passed the GridRangeInfo exactly as it was selected. So, if it was selected as row 1, you would have to pass GridRangeInfo.Row(1). > > >

Administrator [Syncfusion]
Replied On May 18, 2003 03:08 PM UTC

This code seems to work for me in the attached sample? Does it work for you? If not, what version of the grid DLL are you using?

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

;