MoonNight
asked on
Datagrid Update
Hi!
I would like to know how I can change the value of a cell in the datagrid using the program in VB.NET.
I tried this:
For Counter = 0 To (datagrid.VisibleRowCount - 1)
datagrid.Item(Counter, 2) = datagrid.VisibleRowCount.T oString
Next
But it returned this in runtime:
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: The ListManager's position must be equal to rowNum.
Thank you for the help in advance.
I would like to know how I can change the value of a cell in the datagrid using the program in VB.NET.
I tried this:
For Counter = 0 To (datagrid.VisibleRowCount - 1)
datagrid.Item(Counter, 2) = datagrid.VisibleRowCount.T
Next
But it returned this in runtime:
An unhandled exception of type 'System.ArgumentException'
Additional information: The ListManager's position must be equal to rowNum.
Thank you for the help in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.