|109410||Jun 11,2013 07:23 PM UTC||Jun 19,2013 03:46 AM UTC||WinForms||3|
Thanks for your interest in Syncfusion products.
From the reported query it seems that the intention is to highlight records based on filter criteria.
To Highlight Records:
To highlight records you can make use of the PrepareViewStyleInfo event / QueryCellStyleInfo event.
I have attached a sample of how to highlight the current record(Using PrepareViewStyleInfo event). Please use the selection mode tab in the application and choose the available radiobutton mode as such as how you want to highlight the selected grid cells record.
Tweak the customizsation code to get the selected rows..
// Highlight the current row with SystemColors.Highlight and bold font
if (e.RowIndex > grid.Model.Rows.HeaderCount && e.ColIndex > grid.Model.Cols.HeaderCount
e.Style.Interior = new BrushInfo(SystemColors.Highlight);
e.Style.TextColor = SystemColors.HighlightText;
e.Style.Font.Bold = true;
Please let me know if you have any concerns.
We are glad to hear the issue is resolved in your end. Please create a new incident or new forum thread for any of your newer queries.
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.
or the page will be automatically redirected to sign-in page in 10 seconds.