Link to home
Start Free TrialLog in
Avatar of MoonNight
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.ToString
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.
ASKER CERTIFIED SOLUTION
Avatar of twalgrave
twalgrave

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial