Posted 29 May 2023, 12:32 am EST
In the provided XAML code, there is a column named ‘Test’ with its Binding property set to “Test”. However, if the Customer class does not currently contain a property named “Test”, it seems that an update to the data model is necessary.
If you have not added a property named “Test” to the Customer class, we have made a modification to the XAML code as follows:
<c1:GridColumn Header="Test" Format="N1"/>
However, if you have indeed made changes to the data model and added a “Test” property, please provide the relevant code so that I can assist you further.
In your application, you are creating a checkbox column. It is advisable to utilize XAML data templates to define the cell template for bound columns. For more detailed information on how to implement this approach, you can refer to the provided resource.
The CreateCellContent method is responsible for generating the content of a cell, while the BindCellContent method is used to set the actual data in the cell. However, since the data in your custom column is not bound, it is recommended to override the PrepareCell() method instead. This method is invoked for all the cells within the viewport and allows you to create the cell view accordingly. By overriding PrepareCell(), you can customize the cell’s appearance and content based on your specific requirements.
Kindly refer to the attached sample for full implementation. ( See CheckBoxColumnNET6.zip)
Please let us know if you have any further concerns regarding this.
Thanks & Regards,