I need to display rows differently based on the RowState property of the underlaying DataRow. For example I want to display modified rows with different font style (bold). How can this be done using WinGrid?
(This is very easy using Microsoft.NET DataGridView using the CellFormatting event.)
If the row changes and the data source raises a notification that a change was made, then the InitializeRow event will fire again and you can apply the appropriate appearance to the row. So you should be able to use the InitializeRow event of the gridfor this - unless the change you are making does not raise a notification from your data source.
Yes I have tried that but it only reflects the state of the row when it is initialized. If the RowState property changes after row initialization the grid does not format the rows correctly.
There is probably no direct way to do this using UltraWinGrid. I must find some alternative solution (unbound column that stores the RowState or try to monitor events on the underlying List source).
on the initializerow event handler can you apply formatting by e.Row.Cells["ColumnKey"]? have you tried something like that?