|
-
Sep 8th, 2007, 04:40 AM
#1
Thread Starter
Hyperactive Member
[2005] DataGridView
I have populate the DataGridView through DataAdapter.
How can I add additional field in DataGridView for Serial Number & CheckBox
[VBCODE]
Dim daView As SqlDataAdapter
Dim dtView As New DataTable
Dim SqlString As String
lblTable.Text = TableName
SqlString = "select * from " & TableName
Try
daView = New SqlDataAdapter(SqlString, Con)
daView.Fill(dtView)
dgView.DataSource = dtView
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
[/VBCODE]
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|