Use a Cell Value to Change the Value of a Different Cell?
In my QueryCellStyle method, I want to query a cell and, if the value meets my criteria, change the appearance or value of a different cell in that row. How can I accomplish this?
Second, my records are instances of a class with many properties, only some of which I display in the grid. Is it possible for me query the value of a non-displayed property in a record and use this data to initiate certain cell modifications?
I am using C#.
Thank you!
SIGN IN To post a reply.
1 Reply
VS
Vijayarasan Sivanandham
Syncfusion Team
July 15, 2021 11:38 AM UTC
Hi Tradecode,
Thank you for contacting Syncfusion Support.
Please find answer for your queries below
Thank you for contacting Syncfusion Support.
Please find answer for your queries below
|
Queries |
Solutions | |
|
In my QueryCellStyle method, I want to query a cell and, if the value meets my criteria, change the appearance or value of a different cell in that row. How can I accomplish this?
|
Your requirement can be achieved by customize the QueryCellStyle event in SfDataGrid. Please refer the below code snippet,
| |
|
my records are instances of a class with many properties, only some of which I display in the grid. Is it possible for me query the value of a non-displayed property in a record and use this data to initiate certain cell modifications?
|
Your requirement can be achieved by customize the QueryCellStyle event in SfDataGrid. Please refer the below code snippet,
|
For more information related to QueryCellStyle, please refer the user guide documentation,
UG Link: https://help.syncfusion.com/windowsforms/datagrid/conditionalstyling
UG Link: https://help.syncfusion.com/windowsforms/datagrid/conditionalstyling
Please let us know if you have any concerns in this.
Regards,
Vijayarasan S
Regards,
Vijayarasan S
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
TR tradecode
- Jul 14, 2021 03:46 PM UTC
- Jul 15, 2021 11:38 AM UTC