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
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.