Hi, I'm new to VB.NET 2005 and tried to create an ASCII Table using DatagridView.
frmASCII is the name of the ASCII form
Using column name or column index won't show anything. what did i do wrong?
And why in design time, I can't change the names of columns of the DataGridView (colHex, colDecimal and colChar)? But it does show up in design time code view?
frmASCII is the name of the ASCII form
VB.NET:
Sub frmASCIILoad(ByVal sender As Object, ByVal e As EventArgs)
Dim i As Integer
For i = 0 To 255
Dim r As New DataGridViewRow
r.Cells("colHex").Value = Hex(i)
r.Cells("colDecimal").Value = i.ToString
r.Cells("colChar").Value = chr(i)
'r.Cells(0).Value = Hex(i)
'r.Cells(1).Value = i.ToString
'r.Cells(2).Value = chr(i)
Me.dgvASCII.Rows.Add(r)
Next
dgvASCII.Refresh ' dgvASCII is the name of DataGridView, I tried to add this line and see if it make any difference, but it seems does nothing
End Sub
Using column name or column index won't show anything. what did i do wrong?
And why in design time, I can't change the names of columns of the DataGridView (colHex, colDecimal and colChar)? But it does show up in design time code view?