Hello everybody! Yesterday, I decided to remember how to work with Ms Flex Grid in VB.NET. I decided to create 20 columns and 20 rows and titles of columns to be A,B,C,D,E.... and names titles of rows 1,2,3,4,5. But there is a problem when I use a variable. This is the code:
I will show only the snippet for naming rows.
CODE
Grid.Rows = 20
Grid.Cols = 20
Dim i as Integer
Grid.Col = 0 'We will use the 0 column which actually is the title column
For i = 1 To 20
Grid.Row = i 'This is the problem. If I use static number, for example 5 it will work.
Grid.Text = i
Next
The same problem appears if I want to make Grid.Row = 0 and create a loop for naming columns A,B,C,D.
I do not know why it does not accept values from variables. It is very strange. There error is actually an address in the memory(Not Recognized by VS 2005).