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 wondering if there exists a property or a way to display numberic cell value as ##### when the value exceeds cell width (just like the behavior in excel).
Currently, it only shows part of the value which could potentially lead to wrong reading.
HAhaneefm Syncfusion Team December 7, 2007 04:13 PM UTC
Hi Q,
You can do this dynamically in DrawCellDisplayText event. This way you do not modify the actual datatable values, but instead just change what the grid displays. In that event you need to set the e.DisplayText to some new value to want to display. Use the e.RowIndex and e.ColIndex to get the row and column of the cell for which the displaytext has to be set. Below is a code snippet.
one more related question, while setting the DispalyText as #####, how to set CellTipText to show what should have shown the FormattedText.
Do I have to set the CellTipText in QueryCellInfo when in vitual mode?
Thanks,
Q
>Hi Q,
You can do this dynamically in DrawCellDisplayText event. This way you do not modify the actual datatable values, but instead just change what the grid displays. In that event you need to set the e.DisplayText to some new value to want to display. Use the e.RowIndex and e.ColIndex to get the row and column of the cell for which the displaytext has to be set. Below is a code snippet.