VB.Net-->C#

kcwallace

Well-known member
Joined
May 27, 2004
Messages
172
Location
Irvine, CA
My superiors have decided that they want all code converted to C#.

I have figured 99% of it out, but I am stuck on the line below. Can anyone help?

Code:
ds.Tables(0).Rows(lineCnt).Item(64) = sOD1

I tried
C#:
ds.Tables[0].Rows[lineCnt].Item[64] = sOD1;

and it returns this error

System.Data.DataRow does not contain a definition for item

"ds" is a dataset
 
Back
Top