WINFORM DataGrid/DataTable cell data change

  • Thread starter Thread starter andrewcw
  • Start date Start date
A

andrewcw

With ASP.NET is appears the
cells in a table can be
edited by objTable.Rows(index)(ColName)="whatever"
but qcLoaderTable.Rows(0)("IMAGE")="FAIL";
gives me this error.
.....\QCLoader\frmQCLoader.cs
(289): 'System.Data.DataTable.Rows' denotes a 'property'
where a 'method' was expected

What should I be doing differently ? Thanks
 
Hi Andrew,

In C# you should use square brackets to access indexers:

qcLoaderTable.Rows[0]["IMAGE"] = "FAIL";
 
Back
Top