Advertisement

10.01.2007 at 11:22AM PDT, ID: 22864430
[x]
Attachment Details

Get item from dataset with same column name

Asked by AWestEng in .Net Editors & IDEs, Microsoft Visual Basic.Net, Visual Studio .NET 2005

Tags: column, dataset, name

Hi

If i have a sql query that returns a datsset that looks like this

C1 C2 C3 C4 C4

how do i get the C4 when there are two columns with same name

For Each Row In ds.Tables(0).Rows
   strC1 = Row("C1").ToString
   strC2 = Row("C2").ToString
    strC3 = Row("C3").ToString
   strC4_1 = Row(" ???").ToString
    strC4_2 = Row(" ???").ToString
NextStart Free Trial
[+][-]10.01.2007 at 11:28AM PDT, ID: 19992798

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Visual Basic.Net, Visual Studio .NET 2005
Tags: column, dataset, name
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.01.2007 at 11:32AM PDT, ID: 19992843

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.01.2007 at 11:37AM PDT, ID: 19992874

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.01.2007 at 11:41AM PDT, ID: 19992913

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.01.2007 at 12:30PM PDT, ID: 19993394

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628