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.

sfDataGrid showing red borders around GridTemplateColumns

Thread ID:





123487 Mar 22,2016 07:05 AM Mar 24,2016 12:53 PM WPF 3
Tags: SfDataGrid
Willem Dijkgraaf
Asked On March 22, 2016 07:05 AM


As soon as one of the validated columns has a validation error, all columns of type GridTemplateColumn show a red border around the cell. See attachment.

What to do to turn off these red borders?

With kind regards,

Willem Dijkgraaf

Attachment: sfDataGridRedBorderExample_bd82d470.zip

Jayapradha S [Syncfusion]
Replied On March 23, 2016 09:04 AM

Hi Willem,

Thank you for contacting Syncfusion Support.

We have analyzed your reported issue with shared snapshot. You have mentioned “one of the validated columns has a validation error, all columns of type GridTemplateColumn show a red border around the cell”. If you don’t want to see that red color border around the template column, then you can set the GridValidationMode to None for that column. Or else please share your binding code for template and validated columns. .


Willem Dijkgraaf
Replied On March 24, 2016 04:52 AM

Hi Jayapradha,

Thanks for your reply. Putting GridValidationMode to None won't be an option for me since those same columns (that get a red border) have validators as well.
Attached you'll find the XAML related to this grid issue. 
- Validation framework: DataAnnotationsExtenstions.
- Many custom validatros

Kind regards,

Willem Dijkgraaf

Attachment: CalculationRowsView_12e4b124.zip

Sivakumar R [Syncfusion]
Replied On March 24, 2016 12:53 PM

Hi Willem,

We have tried to replicate the issue by loading template in column and GridValidationMode is working fine as expected. Can you modify the below sample to replicate the issue.



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.