General information
Category:
The Mere Mortals .NET Framework
Title:
Binding a dataview to a grid
I'm trying to bind a data grid to a view that I'm creating via the developers guild (which isn't providing much guildance). There's nothing in the example application showing this (or much of anything else for that matter)! Can anyone help me out with what properties need to be setin order to bind the view to a dataview(I've bound grids to dataviews in striaght vb.net) and how to referance the dataveiw after it has been created via the developers guild (see below)?
Dim ds As mmDataSet = CType(Me.GetCurrentDataSet(), mmDataSet)
' Create a custom DataView sorted by phone
Dim dv As New DataView(ds.Tables(0))
dv.Sort = "fldClCompanyName"
ds.AddDataView(dv, "dvClientList")
How do I get a referance to this view in my form?
On a side note: I'm trying advocate using vb.net and this framework at the state shop I work at but the limited docs and example application are not helping my cause.
They would be switching from VFP and maxframe which has a good example application that demos most of the framework and good docs to MM.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only