Moving a control on the page during runtime.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datagrid that I want to move another part of the page. I'm able to
do this but the datagrid looses it's values after the move.

General_DataGrid_CurrentItems is the datagrid name.
I want to move it to a tablecell called tdControls.

this.Controls.Remove(General_DataGrid_CurrentItems);
tdControls.Controls.Add(General_DataGrid_CurrentItems);

This works. It moves the datagrid from the bottom of the page to the middle
where my table cell is. Problem is, it looses the values in the datagrid.
 
I have a datagrid that I want to move another part of the page. I'm able to
....
where my table cell is. Problem is, it looses the values in the datagrid.

Don't do it.
This is a bad internationalization practice, and if you will
ever need to localize your application is going to hit you.
 
Try to put your DataGrid on panel
and move panel
I dont now if it will work
but it seems to it will solve
 
Back
Top