G
Guest
I have a strongly typed dataset that I have been able to bind to a DataGrid
and other associated controls such that selecting a name in the DataGrid
displays the record in the associated controls using DataBinding and the
CurrencyManager. Add, Update and Delete are all working great.
Above the DataGrid I have 26 LinkLabels A-Z where (hopefully) the user will
be able to filter the names in the DataGrid.
I'm pretty sure I need to use a DataView in order to filter the records
based on the users Index (A-Z) selection but I am confused as to how to bind
everything to a DataView instead of the DataTable.
My Strongly Typed DataSet is goDS.
I use the following sample code to bind the controls:
txtFirstName.DataBindings.Add("Text", goDS, "tblGuests.FirstName")
To bind the DataGrid I use:
grd.SetDataBinding(goDS, "tblGuests")
To retrieve the CurrencyManager I use:
CType(BindingContext(goDS, "tblGuests"), CurrencyManager)
How can I bind everything to a DataView instead of a DataTable and still
have it all work in concert?
Any help would be most appreciated.
and other associated controls such that selecting a name in the DataGrid
displays the record in the associated controls using DataBinding and the
CurrencyManager. Add, Update and Delete are all working great.
Above the DataGrid I have 26 LinkLabels A-Z where (hopefully) the user will
be able to filter the names in the DataGrid.
I'm pretty sure I need to use a DataView in order to filter the records
based on the users Index (A-Z) selection but I am confused as to how to bind
everything to a DataView instead of the DataTable.
My Strongly Typed DataSet is goDS.
I use the following sample code to bind the controls:
txtFirstName.DataBindings.Add("Text", goDS, "tblGuests.FirstName")
To bind the DataGrid I use:
grd.SetDataBinding(goDS, "tblGuests")
To retrieve the CurrencyManager I use:
CType(BindingContext(goDS, "tblGuests"), CurrencyManager)
How can I bind everything to a DataView instead of a DataTable and still
have it all work in concert?
Any help would be most appreciated.