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.
we have recognized some strange behavior in our current project. If you create a column descriptor (GridColumnDescriptor) which is not bound to a table descriptor yet, some properties of the newly created object are not set correctly (e.g. null reference)
An example is:
Appearance.AnyRecordFieldCell.Font
After I added the newly created grid column descriptor to a table descriptor object, the font property mentioned above is correct.
So my question: How can I create a grid column descriptor which is initialized correctly even if it is not added to a table descriptor?
ADAdministrator Syncfusion Team February 21, 2007 06:38 PM UTC
Hi Chris,
How can I create a grid column descriptor which is initialized correctly even if it is not added to a table descriptor? >>>>>>> Please try the below code snippet to create the grid column descriptor with mapping name(column name).
GridColumnDescriptor cd = new GridColumnDescriptor("MappingName"); cd.Appearance.AnyRecordFieldCell.BackColor = Color.Red;