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.
Event gridGroupingControl_TableControlPrepareViewStyleInfo sets cell style tag to "Error". Function IsErrorInSpreadsheet() wants to access style tag "Error" but GridTableCellStyleInfo is never set to "Error". How can I get correct instance of GridTablecellStyleInfo with "Error"?
string serialStyleTag = serialStyle.Tag as string;
// Want to access syle tag in following fucntion // This never has "Error" tag if (!string.IsNullOrEmpty(serialStyleTag) && serialStyleTag.Equals("Error")) { return true; }
return false; }
// Function sets style tag as Error private void gridGroupingControl_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e) { GridTableCellStyleInfo style = (GridTableCellStyleInfo)e.Inner.Style;
if (style.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record && e.Inner.ColIndex == 1) { Record record = style.TableCellIdentity.DisplayElement.ParentRecord; string col1= record.GetValue("column1").ToString(); if (col1.Equals("0")) { style.CellTipText = "Invalid column1"; style.Tag = "Error"; } else { style.Tag = ""; } } }