The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am trying to set the border brush on a a single cell using this code:
// This line of code runs without an exception dataGrid.Model[RowIndex, ColumnIndex].Borders.Bottom.Brush = (SolidColorBrush)Resources["brushInvalidDataColor"];
// This line fails wiith NullReferenceException dataGrid.Model[RowIndex, ColumnIndex].Borders.Left.Brush = (SolidColorBrush)Resources["brushInvalidDataColor"];
// This line of code runs without an exception dataGrid.Model[RowIndex, ColumnIndex].Borders.Right.Brush = (SolidColorBrush)Resources["brushInvalidDataColor"];
// This line fails wiith NullReferenceException dataGrid.Model[RowIndex, ColumnIndex].Borders.Top.Brush = (SolidColorBrush)Resources["brushInvalidDataColor"];
If I remove the lines causing the NullReferenceException the code runs but the border of every cell is changed - not just the one cell at RowIndex, ColumnIndex.
I want to set the border color of a single cell - how do I do that?