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
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