Hello there.
I have a Form in a VB.NET Windows App that contains a DataGrid and Bound textboxes (so when the user clicks a row or cell in the gird, the Textboxes also display the selected record).
When I apply a RowFilter to the DefaultView of the DataSet, the Textboxes dont get bound!
I have this simple code for the grid:
********************************
With objCADE.Tables("tbl_assets")
.DefaultView.RowFilter = aFilter
aRows = .DefaultView.Count
If .DefaultView.Count > 0 Then
TabControl1.SelectedIndex = 0
grdtbl_Assets.DataSource = .DefaultView
Else
MsgBox("No records found.")
End If
End With
********************************
But i just don't know what to to with the textboxes!
Any help?
thanks
Cariaco99
I have a Form in a VB.NET Windows App that contains a DataGrid and Bound textboxes (so when the user clicks a row or cell in the gird, the Textboxes also display the selected record).
When I apply a RowFilter to the DefaultView of the DataSet, the Textboxes dont get bound!
I have this simple code for the grid:
********************************
With objCADE.Tables("tbl_assets")
.DefaultView.RowFilter = aFilter
aRows = .DefaultView.Count
If .DefaultView.Count > 0 Then
TabControl1.SelectedIndex = 0
grdtbl_Assets.DataSource = .DefaultView
Else
MsgBox("No records found.")
End If
End With
********************************
But i just don't know what to to with the textboxes!
Any help?
thanks
Cariaco99