Zuordnung der Daten aus Domaintable und Spaltentitel des Grids setzen
[Visual Basic] Private Sub frmDomainEditor_Load( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles _
MyBase.Load
[Visual Basic] Private Sub frmDomainEditor_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
da = New SqlDataAdapter("Select * from " & Me.tablename, Me.co)
cb = New SqlCommandBuilder(da)
da.Fill(ds, "ExtTable")
Me.C1Daten.DataSource = ds.Tables(0)
Me.C1Daten.DataMember = ds.Tables(0).TableName
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition