B
Burak
Hello,
I have a windows forms datagrid,
Dim da As New OleDbDataAdapter(sql, conn)
da.Fill(ds, "providers")
' set the column widths
Dim c0 As New DataGridTextBoxColumn
'c0.TextBox.Enabled = False
c0.MappingName = "PROV_ID"
c0.HeaderText = "ID"
c0.Width = 45
' clear out the table style
dtgResults.TableStyles.Clear()
' create new table style
Dim style As New DataGridTableStyle
' set mapping name to table name
style.MappingName = "providers"
' add column widths to the style
style.GridColumnStyles.Add(c0)
' add style to the data grid
dtgResults.TableStyles.Add(style)
'bind the data source
dtgResults.DataSource = ds.Tables(0)
dtgResults.Refresh()
I want to make PROV_ID clickable, how can I do this?
Thank you,
Burak
I have a windows forms datagrid,
Dim da As New OleDbDataAdapter(sql, conn)
da.Fill(ds, "providers")
' set the column widths
Dim c0 As New DataGridTextBoxColumn
'c0.TextBox.Enabled = False
c0.MappingName = "PROV_ID"
c0.HeaderText = "ID"
c0.Width = 45
' clear out the table style
dtgResults.TableStyles.Clear()
' create new table style
Dim style As New DataGridTableStyle
' set mapping name to table name
style.MappingName = "providers"
' add column widths to the style
style.GridColumnStyles.Add(c0)
' add style to the data grid
dtgResults.TableStyles.Add(style)
'bind the data source
dtgResults.DataSource = ds.Tables(0)
dtgResults.Refresh()
I want to make PROV_ID clickable, how can I do this?
Thank you,
Burak