How to change the color of the cell when I changed its value?
rgv.CurrentRow.Cells[title].Value = newValue;
Is it possible?
2 Answers, 1 is accepted
0
Accepted
Stefan
Telerik team
answered on 17 Oct 2012, 06:35 AM
Hi Jei,
Thank you for writing.
You can use the CellValueChanged event of RadGridView, where you can store the cell's column name in the RowInfo.Tag and then in the CellFormatting event, you can check the tag and style the cell accordingly:
if (!e.Row.Tag.ToString().Contains(e.Column.Name))
{
e.Row.Tag += e.Column.Name;
}
}
I hope this helps.
All the best,
Stefan
the Telerik team
You’ve been asking for it and now it’s time for us to deliver. RadControls for WinForms Q3 2012 release is just around the corner. Sign up for a free webinar to see first all the latest enhancements.