Problem with active cell not updating

I am having a problem where when the grid gets updated (for example a Paste operation), the active cell (with a text box in it) does not get updated until the focus is moved to another cell. Do I need to manually update it or is there a call to the grid I need to make to tell it to update the TextBox?

4 Replies

BM Bryan Mau May 23, 2003 10:02 AM UTC

More detail: After we finish the paste we call InvalidateRange() and then do a Refresh(). If I replace the Refresh with a RefreshRange() it works (the cell gets updated). What's the difference between Refresh/RefreshRange?


AD Administrator Syncfusion Team May 23, 2003 11:45 AM UTC

This should be fixed in 1.6. Just calling RefreshRange should be fine. Difference between this two methods is that Refresh does a bit more. Also updates scrollbars, refreshed current cell etc. But as I said in 1.6 the RefreshRange call will also take care on synchronizing current cell contents. Stefan


RA Ramu May 28, 2003 04:11 PM UTC

> This should be fixed in 1.6. Just calling RefreshRange should be fine. > > Difference between this two methods is that Refresh does a bit more. Also updates scrollbars, refreshed current cell etc. But as I said in 1.6 the RefreshRange call will also take care on synchronizing current cell contents. > > Stefan Hey, I am also facing the same problem. But even when I add refreshrange, its not updating. MessageBox.Show( sygFormFields[intRowIndex, intColListValues].Text ); sygFormFields[intRowIndex, intColListValues].Text = _strUpdatedListValues; sygFormFields.RefreshRange(GridRangeInfo.Rows(intRowIndex,intRowIndex)); MessageBox.Show( sygFormFields[intRowIndex, intColListValues].Text ); During the first update, its working fine. for the subsequent updates, its not refreshing. Thanks in Advance. Ram


AD Administrator Syncfusion Team May 28, 2003 06:43 PM UTC

This is fixed in 1.6 Stefan

Loader.
Up arrow icon