Working with DataView VB.NET to C#

  • Thread starter Thread starter Liz
  • Start date Start date
L

Liz

Working with a DataGrid/DataView in VB, I have the
following code


VB.NET
//set the OrderID field of a newly added product
_productsData.Item(_productsData.Count - 1) ("OrderID") =
_order.orderID;

I need to convert this to C#??

Liz
 
Liz,

The line would convert like this:

_productsData.Item[_productsData.Count - 1]["OrderId"] = _order.orderID;

Hope this helps.
 
Back
Top