detect eof on datagrid

  • Thread starter Thread starter starbuck
  • Start date Start date
S

starbuck

HI

I am populating a datagrid with a dataset but I cannot find a EOF or BOF
property on either. Do they exist?

Thanks in advance
 
Hi Starbuck,

In addition to Ken, for dataset and a datagrid you do not need the EOF and
the BOF, will you find it anyway look at the message of Ken.

To add a dataset to a datagrid it is only.
datagrid1.datasource = dataset11

That is not so nice, nicer is to set the table
datagrid1.datasource = dataset11.tables(0)

And even nicer is to use the dataview which you have sorted
dim dv as new dataview(dataset11.tables(0))
dv.sort = "mycolumns"
datagrid1.datasource = dv

I hope this helps a little bit?

Cor
 
Thanks folks



Cor said:
Hi Starbuck,

In addition to Ken, for dataset and a datagrid you do not need the EOF and
the BOF, will you find it anyway look at the message of Ken.

To add a dataset to a datagrid it is only.
datagrid1.datasource = dataset11

That is not so nice, nicer is to set the table
datagrid1.datasource = dataset11.tables(0)

And even nicer is to use the dataview which you have sorted
dim dv as new dataview(dataset11.tables(0))
dv.sort = "mycolumns"
datagrid1.datasource = dv

I hope this helps a little bit?

Cor
 
Back
Top