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.
Hi,
I use the GridDataBoundGrid from 2.1.0.9.
I need to change the display value of the cell.
(For example 0 - "C1", 1 - "T1", 2 - "U1")
If I handle PrepareViewStyleInfo event and override
e.StyleInfo.FormattedText or e.StyleInfo.Text Grid throws System.FormatException exception.
The column type is System.Byte.
ADAdministrator Syncfusion Team December 6, 2005 12:10 AM UTC
If you want to change the text displayed in the cell, try handling DrawCellDisplayText and set e.Display to the new value you want to see.
AFAlex FeldmanDecember 6, 2005 01:02 PM UTC
It does what I need.
How I can find the column number inside DrawCellDisplayText?
Does it mean that Style contain the indentifier of how I should change the display value?
ADAdministrator Syncfusion Team December 6, 2005 02:22 PM UTC
Try using e.Style.CellIdentity.RowIndex and e.Style.CellIdentity.ColIndex to get the row and column of the cell being drawn.