all groups > dotnet windows forms databinding > september 2006 >
You're in the

dotnet windows forms databinding

group:

VB to C# issue



VB to C# issue Arvi
9/12/2006 3:41:22 PM
dotnet windows forms databinding: Hi,

im converting a VB web app to a C#.



i have problem with the following line

ds.Tables[0].Rows[ind].Item["taskid"]

ERROR - 'System.Data.DataRow' does not contain a definition for 'Item'

whats the alternate that i can use?

please let me know


Thanks

Re: VB to C# issue Michael C
9/13/2006 12:00:00 AM
[quoted text, click to view]

without trying it I would presume you just drop the .Item

ds.Tables[0].Rows[ind]["taskid"]

[quoted text, click to view]

Re: VB to C# issue Cor Ligthert [MVP]
9/13/2006 12:00:00 AM
Arvi,

In addition to the others in VB.Net you can drop that "item" as well, it is
the default property.

Cor

"Arvi" <arvi@cti.com> schreef in bericht
news:eSGWTyr1GHA.1256@TK2MSFTNGP04.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button