This question is locked. New answers and comments are not allowed.
I am modifying a cell's style using the CellEditEnded event. It works great except for one issue: My grid uses horiz and vert scrollbars, and after a cell is edited, and the style is modified for that edited cell - if the grid is scrolled so that the cell begins to move off the viewable area, the cell's new style disappears.
Appreciate any help!
<Style x:Key="GridViewCellStyle" TargetType="telerik:GridViewCell">
<Setter Property="Foreground" Value="Red" />
<Setter Property="Background" Value="Black" />
</Style>
CODEBEHIND:
private void listGrid_CellEditEnded(object sender, GridViewCellEditEndedEventArgs e) { if (e.NewData.ToString() != e.OldData.ToString()) { GridViewCellBase editedCellBase = (from c in parentRow.Cells where c.Column.UniqueName == e.Cell.Column.UniqueName select c).FirstOrDefault(); GridViewCell editedCell = (GridViewCell)editedCellBase; editedCell.Style = (Style)this.Resources["GridViewCellStyle"]; } }