Hi,
I have a puzzling stituation....I have a form with a tab control. On the first page of the tab control I have a datagridview working properly with 4 columns created at design time and populated at run time. On the second page of the tab control I have another datagridview with 11 columns created at design time but when I try to populate it (like I did for the first) as follows:
...
holdgv = New DataGridViewRow
holdgv.CreateCells(dgvRenHistory)
holdgv.Cells(dgvRenHistory.Columns("renId").Index).Value = ....some value
holdgv.Cells(dgvRenHistory.Columns("renPrevId").Index).Value = ....some value
...
dgvRenHistory.Rows.Add(holdgv)
I realize that dgvRenHistory.columns.count = 0 eventhough I created it with 11 columns...so what's the problem
I have a puzzling stituation....I have a form with a tab control. On the first page of the tab control I have a datagridview working properly with 4 columns created at design time and populated at run time. On the second page of the tab control I have another datagridview with 11 columns created at design time but when I try to populate it (like I did for the first) as follows:
...
holdgv = New DataGridViewRow
holdgv.CreateCells(dgvRenHistory)
holdgv.Cells(dgvRenHistory.Columns("renId").Index).Value = ....some value
holdgv.Cells(dgvRenHistory.Columns("renPrevId").Index).Value = ....some value
...
dgvRenHistory.Rows.Add(holdgv)
I realize that dgvRenHistory.columns.count = 0 eventhough I created it with 11 columns...so what's the problem