Hi Suhas,
Thanks for using Syncfusion products.
Your requirement of changing the cell color depending
on the property value which did not
included in hidden/visible columns in Grid
can be achieved by using RowDataBound Event. Please refer to the below
code snippet to achieve this.
[CS]
void
GridGroupingControl1_RowDataBound(object sender, Syncfusion.Web.UI.WebControls.Grid.Grouping.RowDataBoundEventArgs e)
{
for (int i = 0; i <
e.Row.Cells.Count; i++)
{
if
(((Syncfusion.Web.UI.WebControls.Grid.Grouping.GridCell)(e.Row.Cells[i])).ColumnDescriptor != null)
{
if (((Syncfusion.Web.UI.WebControls.Grid.Grouping.GridCell)(e.Row.Cells[i])).ColumnDescriptor.Name
== "Name")
{
if
((e.Row.Record!=null) && (e.Row.Record.GetValue("Gender") == "Male"))
{
e.Row.Cells[0].BackColor = Color.Green;
}
}}}}
Please refer to the attached sample application for further
reference.
Please get back to us if you need further assistance.
Regards,
Shanmugaraja
WebformSample_98767d5e.zip