E
eagle
How can I declare the name of a grid, then use it to bind it to the
datasource?
I have 3 grids, each with different id's. dgOne, dgTwo, dgThree. I want to
be able to do things to each grid. So I need to pass the name of the grid
to the GetData procedure. What I have done so far:
arrGridNames(1) = "One"
arrGridNames(2) = "Two"
arrGridNames(3) = "Three"
dg = "dg" & arrGridNames(1)
so that I come up with dgOne. But of course that is a string, and can't be
a datagrid, so when I try to bind it, I get the error: public member
'Datasource" on type 'String' not found.
How would I do this?
datasource?
I have 3 grids, each with different id's. dgOne, dgTwo, dgThree. I want to
be able to do things to each grid. So I need to pass the name of the grid
to the GetData procedure. What I have done so far:
arrGridNames(1) = "One"
arrGridNames(2) = "Two"
arrGridNames(3) = "Three"
dg = "dg" & arrGridNames(1)
so that I come up with dgOne. But of course that is a string, and can't be
a datagrid, so when I try to bind it, I get the error: public member
'Datasource" on type 'String' not found.
How would I do this?