Problem using DataGridView Control of VB.NET 2008
- by Tareq
Hi,
I am using VB.NET 2008 based on Framework 3.5
I use a datagridview control on a form and the form's load event as follows:
Private Sub frmServiceSettings_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
With dgvFinishedProduct
Dim myCombo As New DataGridViewComboBoxColumn
... I generate the combo here from the result of my database
.Columns.Add(myCombo)
End With
End Sub
Now when i want to get the data that is set in this column, there is no problem. But if I want to set the data programmatically, there arises problem.
How can I solve the problem? If you want more info, please let me know.