Hi, I'm using vs2005, .net 2 for windows applciation. I have a form with 1
datagrids whose datasource comes from 2 dataview that are based on 2 dataset
datatables(depends on the stat of the application then one of the dataview
will be selected as datasource for the grid). Both dataview have only 2
columns but one of the columns name is different. Depending on the state of
the application, I would need to change the datasource to be attached to the
datagrid. This is where the problem occurs. The grid has a column created
in the designer that is looking for certain column name in the other dataview
as a datasource. Do I remove and save the column in the grid, add the new
columns name column and reverse it when the application changes? Or, would
it be better if I just create and layer another gird and hide one of the grid
according to the application state? Which would be a better performance
solution? I expect the grid to contain the most is a couple of thousands of
rows.
--
Thanks.