A couple of easy datagrid questions

  • Thread starter Thread starter melton9
  • Start date Start date
M

melton9

I'm just getting into using datagrid and have a couple of questions.

1.)How do you get the grid to show the values of a datatable
automatically? Currently I have to hit the + sign and then select
"getNews"(the datatable) to show my data.

2.) I have this set up to a loop. So after I view my grid any updates
in the loop causes the datagrid to go blank(ie gray box).

Anybody know what I should add to make the datagrid correctly
repopulate on every loop?
 
Hi,

1) Set the datagrid's datasource to the dataset.tables("TableName") or
dataset.tables(0)

2) Post some code

Ken
 
1) datagrid.datasource = myDataSet.tables(0)
2) datagrid.refresh

hope this helps

Greetz Peter
 
I can now see that my post was a bit late and Ken already answered, but
that's because I forget to press F5 before posting :-)

Greetz Peter
 
Back
Top