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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfDataGrid selected row highlight or manual selection handling

Thread ID:

Created:

Updated:

Platform:

Replies:

149490 Nov 27,2019 03:24 PM UTC Nov 29,2019 07:18 AM UTC WinForms 4
loading
Tags: SfDataGrid
Leigh Anderson
Asked On November 27, 2019 03:24 PM UTC

Hi - have started using an SfDataGrid in WinForms.

I want to allow single row selection, but only have the selection highlighting on the first column -is that possible?
(reason is I've set background colour on other columns and want that to remain visible when the row is selected)

Alternatively is it possible to simulate the selection manually?
So when a row is clicked just change the background colour of the first column cell and restore the colour of the previous one?
I've tried this using CellClickEvent to set a value in the row and QueryCellStyle to change the background colour for that value but its not working.
Is there something I need to call after changing a data value to force QueryCellStyle to update?

Thanks

Leigh




Gowtham Gopalsamy [Syncfusion]
Replied On November 28, 2019 01:12 PM UTC

  
Hi Leigh , 
  
Thank you for using Syncfusion controls. 
 
We have considered to provide support for “Support to customize the row style for current row when selection is applied” in WinForms and logged feature request for the same. We will implement this feature in any of our upcoming release.   
  
At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.  
  
Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.  
   
  
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.  
 
Please let us know, if you require further assistance on this. 
  
Regards, 
Gowtham. 


Leigh Anderson
Replied On November 28, 2019 02:15 PM UTC

Hi Gowtham

Thanks for the update.

I have another query - is it possible to force a refresh/redraw of a row?

I'm changing the images in my datasource but the display only seems to update if I move the mouse out left and back in to the grid!?

Also is there something to force QueryCellStyle as well?

Thanks

Leigh

Leigh Anderson
Replied On November 28, 2019 04:38 PM UTC

Don't worry - have found the answer myself - can use sfDataGrid:Refresh() and sfDataGrid:Update()

Leigh

Farjana Parveen Ayubb [Syncfusion]
Replied On November 29, 2019 07:18 AM UTC

Hi Leigh, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Farjana Parveen A 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon