Home All Groups Group Topic Archive Search About

Datatable display help help

Author
16 Sep 2006 7:50 AM
Bonzol
hey there,, using 2005,, making a Website

Normally when I code I only have to display certain sections of a
datatable, like an item or something. So I just store it in a label.

So now my problem is. I need to display the entire datatable which
could contain the amount of records from 0 - 100.

What are people suggestions with displaying all the contents of a
datatable. Do I use a table,, a listbox? im not sure what the best
methods are.

Could someone also give me the code to fill it,

for examples sake

Dim dt as Datatable

Thanx in advance

Author
16 Sep 2006 8:34 AM
Bonzol
I've decided to use a gridview,,, can anyone tell me how to fill it
with the datatable?
Author
16 Sep 2006 2:18 PM
rowe_newsgroups
Bonzol,

First off you really need to stop double posting your questions. It
makes it difficult to follow your progress and to build on other
peoples suggestions. But now onto filling you're DataGridView. The
easiest way is to just do this:

DataGridView1.DataSource = dt

Note, the object browser (shortcut is F2) is a great way to browse all
the methods, properties and events that an object contains. Almost all
contain a summary that says what they do.

Thanks,

Seth Rowe

Bonzol wrote:
Show quoteHide quote
> I've decided to use a gridview,,, can anyone tell me how to fill it
> with the datatable?