Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Row recreation on Visible change and loss of Row status(ReadOnly)

  •  05-15-2008, 11:54 PM

    Row recreation on Visible change and loss of Row status(ReadOnly)

    Hi

    1) question of performance on visible change

    I am using the DataGrid for example on a TabItem in a TabControl. Always when i switch back to the tab with the Table it recreates all (visible) rows. Is there a way to suppress the recreation of the rows and just keep the old ones? (the datasource does not change)

    2) question of row status information loss

    when I change the status of a row to ReadOnly and scroll it out of the visible area and back the row is recreated and thus it is not ReadOnly anymore. Should I create a mechanism that synchronizes the data status with the row status at all times or is there some exposed way to do it in the DataGrid.

    3) question of performance when moving rows up and down and invalidating

    when I move a row up and down in the bound IBindingList I first tryed to invalidate the changed rows on the DataGrid but it does nothing. Now i fire a ListChanged event on the IBindingList with the attribute ListChangedType.Reset which of course recreates all visible rows again. Is there a way to only change the bound data of the row and then repaint instead of recreating the row(s)

     Note: i use ListChangedType.Reset because in some DataGrid I expose a positioning column and if I move the rows up and down I actually set the new position in the Data. So from the position down the position of every Data changes.

    Great grid thanks

    Stefan

    Filed under: , ,
View Complete Thread
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.