M
Michael
Hi,
I found a wierd problem in DataGrid.
If I set DataGrid's DataSource to empDataSet1 at designtime,
then I can never change its DataSource at runtime, e.g., in the
Button1_Click event procedure:
DataGrid1.DataSource = dataView1;
DataGrid1.DataBind();
But if I clear DataGrid's DataSource property at designtime,
then I can change its DataSource to any object at runtime.
It's really wierd, isn't?
I found a wierd problem in DataGrid.
If I set DataGrid's DataSource to empDataSet1 at designtime,
then I can never change its DataSource at runtime, e.g., in the
Button1_Click event procedure:
DataGrid1.DataSource = dataView1;
DataGrid1.DataBind();
But if I clear DataGrid's DataSource property at designtime,
then I can change its DataSource to any object at runtime.
It's really wierd, isn't?