Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom DataGrid code problem.

Status
Not open for further replies.

stfarm

Programmer
May 31, 2001
179
CA
Hi everybody,

I have been struggling with the following code. When the grid comes up, it is empty.
(Records show up when I do not use this code.)
I am sure I am missing a part, could you please let me know which one.

Thanks...........Steve

DA.Fill(DS, "TA1")
DataGrid1.DataSource = DS
DataGrid1.DataMember = "TA1"

Dim ts As DataGridTableStyle = New DataGridTableStyle
ts.MappingName = "TA1"

Dim TB1 As DataGridColumnStyle = New DataGridTextBoxColumn
TB1.MappingName = "TA1.MRKT_BUS_NO"
TB1.HeaderText = "Last Name"
ts.GridColumnStyles.Add(TB1)
DataGrid1.TableStyles.Add(ts)


Steve
 
are you using the correct DataAdapter? Have you created more than one. Have you created more than one DataSet?
I cant see anything wrong with the code. Where is your SQL select query located?
Best of luck
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top