What the hell did I do?

  • Thread starter Thread starter KC
  • Start date Start date
K

KC

I was in the middle of some other serious revision or bug fix, so I didn't
have time to examine this closely, and I haven't been able to locate this in
my VB book yet. But this is what I saw - the datagrid had no data displayed
and a plus box (+) to the left. When I clicked it I saw a listing of all the
tables I was using. When I clicked one of the highlighted table names, the
table appeared!

Can anybody tell me what that was or where I might find this subject in a
manual? I have "Programming Microsoft VB.net" but can't seem to find this
fold up tree thing.
 
Are you talking about the Server Explorer window (usually located next to
the Toolbox)?
 
No, this was in my run-time application. I did something and I'm not sure
what.

Scott M. said:
Are you talking about the Server Explorer window (usually located next to
the Toolbox)?
 
KC,
It sounds like you cleared the DataGrid.DataMember property and set
DataGrid.AllowNavigation to True.

If you do not want the "+" to appear at all, set AllowNavigation to False.

Set the DataMember property to the name of your table to have that table
first appear in the grid.

Hope this helps
Jay

KC said:
No, this was in my run-time application. I did something and I'm not sure
what.

Scott M. said:
Are you talking about the Server Explorer window (usually located next to
the Toolbox)?
in
 
Try using dataAdapterName.TableName in the DataSourse Property of the
DataGrid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top