Hello, i have to migrate some code from VB6 to VB .net and i've found a problem with the datagrid.
I've this method, it runs well in VB6.
Public Sub ShowDatagrid(ByVal dtg As DataGrid)
Dim i As Integer
Dim HeighN As Long
Dim ValidColumns As Integer
ValidColumns = dtg.Columns.Count / 2
HeighN = VB6.TwipsToPixelsY(360)
For i = ValidColumns To dtg.Columns.Count - 1
If dtg.Columns(i).dataField <> "" Then
Load_label(dtg.Columns(i), i - ValidColumns)
[...]
But in VB .net it doesn't compile because Columns is not a member of DataGrid. Please, there is some easy way to solve that?????
Thanks.
I've this method, it runs well in VB6.
Public Sub ShowDatagrid(ByVal dtg As DataGrid)
Dim i As Integer
Dim HeighN As Long
Dim ValidColumns As Integer
ValidColumns = dtg.Columns.Count / 2
HeighN = VB6.TwipsToPixelsY(360)
For i = ValidColumns To dtg.Columns.Count - 1
If dtg.Columns(i).dataField <> "" Then
Load_label(dtg.Columns(i), i - ValidColumns)
[...]
But in VB .net it doesn't compile because Columns is not a member of DataGrid. Please, there is some easy way to solve that?????
Thanks.