program. edit of DataGrid

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

andrewcw

I need to update my DataBase grid ( not on the users mouse
but external process states ).

How do I reference the cell to update ? Do I work with the
dataTable, do I iterate through a Column Collection or
what ? Please provide code snippet.

Thanks.
 
I need to update my DataBase grid ( not on the users mouse
but external process states ).

How do I reference the cell to update ? Do I work with the
dataTable, do I iterate through a Column Collection or
what ? Please provide code snippet.

You want to update the grid yourself?
oMyGrid.Item( row , column )

If you use a DataTable, DataSet (or a bog standard collection for that
matter) you should change the underlying data structure, and
rebind/update/refresh as necessary.
 
My DataGrid QCDG ( at least in C# ) in WINFORM has no
item property to access. I do have a DataTable that's
unbound and loaded but I also cannot get to it by
qcLoaderTable.Rows(0)("IMAGE")="FAIL"; //as in ASP.NET

because I get this error. Ideas ??
... \frmQCLoader.cs(289): 'System.Data.DataTable.Rows'
denotes a 'property' where a 'method' was expected
 
My DataGrid QCDG ( at least in C# ) in WINFORM has no
item property to access. I do have a DataTable that's
unbound and loaded but I also cannot get to it by
qcLoaderTable.Rows(0)("IMAGE")="FAIL"; //as in ASP.NET

because I get this error. Ideas ??
.. \frmQCLoader.cs(289): 'System.Data.DataTable.Rows'
denotes a 'property' where a 'method' was expected

I am at a bit of a loss here... By "QCDG", are you referring to a
specialised object? A wrapper, perhaps?
I've seen something like that error before: it was due to improperly
overloading a function as a property (or vice versa).

hth
 
Back
Top