Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get the value of the data in a column in oledbconnection

Status
Not open for further replies.

meenakshikalera

Programmer
Jun 23, 2004
8
0
0
US
hi!

i have created a dataset using the oledbconnection...not a datagrid though...i want the value of the data in a particular column in the dataset.

how do i do this?
thanks,
regards,
meenakshi
 
You can go through each row and set a variable to the item value like this.

Code:
For i As Integer = 0 To ds.Tables(0).Rows.Count - 1
    Dim myRow As DataRow = ds.Tables(0).Rows(i)
    Dim s As String = myRow.Item("column").ToString 
Next

Is this what you are looking for?

Andrea
 
hi andrea!

thank u...looks fine...i am integrating this logic into my code...i tested a part of it ...looks fine...i hope i can use it for the actual thing that i want...join etc.
i will get back to u if i have any other doubt regarding this on monday...

thanks a lot!

regards,
meenakshi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top