I have a strange issue with Janus GridEx.

The grid is bound to DataSet containing 1 table, which is displayed on screen correctly. However, whenever I make changes to grid, they are not reflected in my DataSet.

This is where I update the changes:

 void janusGrid_CellEdited(object sender, ColumnActionEventArgs e)
        {
            JanusGrid.UpdateData();
            bool anyChanges = DataSet.HasChanges();
            DataSet.Tables["Components"].AcceptChanges();
        }

anychanges bool value has "true".

Please give me some clues, because I cannot figure out what I am missing or doing wrong...

有帮助吗?

解决方案

OK I found the reason of such behaviour. All I needed was the statement "JanusGrid.UpdateData();" for CellUpdated event, not CellEdited.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top