Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

If I have multiple tables "cached" in a dataset, and a dropdown list of those tables, how can I set my datagrid to display these tables in the datagrid?

 

For example I have:

 

With DataGrid1

.DataSource = dsSeedList.Tables(CType(cmbTables.SelectedItem, String))

.AllowSorting = True

.AlternatingBackColor = System.Drawing.Color.Beige

.SetDataBinding(DataSet11, getTable)

End With

 

but that doesn't work. Anywhelp?

If it works... don't worry, I'll fix it.
  • *Experts*
Posted

After setting the DataSource, I believe all you need to do is to

call the DataBind method of the DataGrid.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...