Hello Steve,
Thank you for writing.
You will definitely need a way to identify the column you want to customize. If you know its index, this would be sufficient for the purpose. If not, when you add it, you can set its Tag or something, so you can later identify it. One you know the column you need to customize, the CellFormatting event is what you need:
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Thank you for writing.
You will definitely need a way to identify the column you want to customize. If you know its index, this would be sufficient for the purpose. If not, when you add it, you can set its Tag or something, so you can later identify it. One you know the column you need to customize, the CellFormatting event is what you need:
void
radListView1_CellFormatting(
object
sender, ListViewCellFormattingEventArgs e)
{
if
(radListView1.Columns.IndexOf(e.CellElement.Data) == 1 && e.CellElement
is
DetailListViewDataCellElement)
{
e.CellElement.BackColor = Color.Yellow;
e.CellElement.GradientStyle = GradientStyles.Solid;
}
else
{
e.CellElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
e.CellElement.ResetValue(LightVisualElement.GradientStyleProperty, ValueResetFlags.Local);
}
}
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items