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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top