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. Image for the cookie policy date

sfDataGrid showing red borders around GridTemplateColumns

GridValidationMode="InView"

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

3 Replies

JS Jayapradha S Syncfusion Team March 23, 2016 01:04 PM UTC

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

Regards,
Jayapradha



WD Willem Dijkgraaf March 24, 2016 08:52 AM UTC

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


SR Sivakumar R Syncfusion Team March 24, 2016 04:53 PM UTC

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.
http://www.syncfusion.com/downloads/support/forum/123487/ze/DataValidationDemo-911400602

Thanks,
Sivakumar

Loader.
Up arrow icon