Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6471787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:15:55+00:00 2026-05-25T06:15:55+00:00

I have the following method which returns dataset. I am using .NET 2.0 DataSet

  • 0

I have the following method which returns dataset. I am using .NET 2.0

DataSet ds = GetAllRecords();

I want to get values from each column for a particular row and bind it to a variable.
How can this be achieved?

currently the method returns all the row from the table and I have to find that particular row based on ID.

However, if that is not possible I can come with

DataSet ds = GetSpecificRecord(id);

But I still need to get values from each column and bind it to variable.
Please advice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:15:55+00:00Added an answer on May 25, 2026 at 6:15 am
    // Create a table 
    DataTable table = new DataTable("users");
    table.Columns.Add(new DataColumn("Id", typeof(int)));
    table.Columns.Add(new DataColumn("Name", typeof(string)));
    
    table.Rows.Add(1, "abc");
    table.Rows.Add(2, "ddd");
    table.Rows.Add(3, "fff");
    table.Rows.Add(4, "hhh d");
    table.Rows.Add(5, "hkf ds");
    
    // Search for given id e.g here 1
    
    DataRow[] result = table.Select("Id = 1"); // this will return one row for above data 
    foreach (DataRow row in result)
    {
        Console.WriteLine("{0}, {1}", row[0], row[1]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a method in .NET (C#) which returns string[][] . When using RegAsm
I have the following method which is not capturing anything from the user.If I
I have the following method which returns true when a PropertyInfo instance references an
I have a method which returns a persisted html template from a database. The
I have a method which returns an NSArray with points to be plotted. Following
I have the following method. Which returns Could not execute update query. If i
I have the following code which returns results back from a database where columnName
i have the following linq extension method, which returns an IEnumerable. This means, that
I would like to have the following method which returns HttpResponse . But at
I have the following method which serialises an object to a HTML tag. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.