C
Cip
Hi,
If I have this:
Dim myTable as new DataTable
Dim grid as new DataGrid
myTable = MyObject.GetTable1()
grid.dataSource = myTable
myTable = MyObject.GetTable2()
How can I get the grid to bind itself to myTable so that after myTable
= MyObject.GetTable2(), the grid automatically repopulates itself with
the new data ?
I am basically asking if I can bind the grid to the actual myTable
variable rather than the DataTable object myTable is referencing.
If that is not possible then how can I make myTable =
MyObject.GetTable2() set the original DataTable object referenced by
myTable to MyObject.GetTable2().
I think that currently myTable = MyObject.GetTable2() creates a new
DataTable object and makes myTable point to this new DataTable,
without changing the original DataTable object.
If I have this:
Dim myTable as new DataTable
Dim grid as new DataGrid
myTable = MyObject.GetTable1()
grid.dataSource = myTable
myTable = MyObject.GetTable2()
How can I get the grid to bind itself to myTable so that after myTable
= MyObject.GetTable2(), the grid automatically repopulates itself with
the new data ?
I am basically asking if I can bind the grid to the actual myTable
variable rather than the DataTable object myTable is referencing.
If that is not possible then how can I make myTable =
MyObject.GetTable2() set the original DataTable object referenced by
myTable to MyObject.GetTable2().
I think that currently myTable = MyObject.GetTable2() creates a new
DataTable object and makes myTable point to this new DataTable,
without changing the original DataTable object.