Disabling Datagrid Refresh

  • Thread starter Thread starter HKM
  • Start date Start date
H

HKM

Hi All,

Is it possible to disable the datagrid refresh while
changing the datasource properties, basically im renaming
columns in the background and sometime it gets crazy to
see datagrid columns changing width as they are renamed.
Instead i would like to perform the rename operation
completely in the background and then refresh it to show
the changes in column names. Is it possible ?




Thanks in advance,

-HKM
 
Hi All,

Is it possible to disable the datagrid refresh while
changing the datasource properties, basically im renaming
columns in the background and sometime it gets crazy to
see datagrid columns changing width as they are renamed.
Instead i would like to perform the rename operation
completely in the background and then refresh it to show
the changes in column names. Is it possible ?




Thanks in advance,

-HKM

Just a guess, but have you tried DataGrid.SuspendLayout() and
DataGrid.ResumeLayout() ?
 
Back
Top