Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement