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() ?
 
It works ! Thats cool.

Thanks Ludwig

-HKM
-----Original Message-----


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top