Wrox Home  
Search P2P Archive for: Go

  Return to Index  

ado_dotnet thread: displaying the row in a dataset


Message #1 by "Antine de Constancio" <bira_dayok@y...> on Thu, 17 Jan 2002 11:12:11
How am I going to access each row in a dataset using C#? I used the 

following syntax:

     DS.Tables[0].Rows[0].Item[0].ToString

to output the first row. The problem is that the compiler tells me that 

there is no definition of Item in System.Data.DataRow. I found a similar 

working program in VB utilizing the exact syntax above. How come it 

doesn't work in C#?
Message #2 by "Kyle" <Kyle@T...> on Thu, 17 Jan 2002 06:52:07 -0500

DS.Tables[0].Rows[0]["Column Name"]

_____________________________________________



Kyle Dunn

Chief Information Officer

Funeral Services, Inc.

xxx-xxx-xxxx  x 309

Kyle@F...



-----Original Message-----

From: Antine de Constancio [mailto:bira_dayok@y...]

Sent: Thursday, January 17, 2002 6:12 AM

To: ADO.NET

Subject: [ado_dotnet] displaying the row in a dataset



How am I going to access each row in a dataset using C#? I used the

following syntax:

     DS.Tables[0].Rows[0].Item[0].ToString

to output the first row. The problem is that the compiler tells me that

there is no definition of Item in System.Data.DataRow. I found a similar



working program in VB utilizing the exact syntax above. How come it

doesn't work in C#?




$subst('Email.Unsub').


  Return to Index