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 8003563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:40:50+00:00 2026-06-04T16:40:50+00:00

I am a newbie in Web Developing. I am using C# in ASP.net I

  • 0

I am a newbie in Web Developing. I am using C# in ASP.net

I created a Dataset that includes TableAdapters.

I.e. for my Table Product_family i created the ProductFamilyTableAdapter that includes the following columns prfm_description1, prfm_description2, prfm_description3, etc…

I have a method GetAllProductFamilies.

After that i created a Business Logic Layer class ProductFamiliesBLL.cs which includes the same functions.

In the Page_Load event of my master page i create

ProductFamiliesBLL prfLogic = new ProductFamiliesBLL()

and i can bind to a Datagrid

datagrid1.Datasource = prfLogic.GetAllProductFamilies();
datagrid1.Databind();

My question is if I can add this data into an array or a List and how?
How can i read one by one the retrieved rows and get data from first, second,…, n row from a specific column.

  • 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-06-04T16:40:51+00:00Added an answer on June 4, 2026 at 4:40 pm

    As below you can loop through each row and each column of the row tha….and your code will be likw this…

    foreach (DataRow dr in prfLogic.GetAllProductFamilies())
    {
       foreach(DataColumn dataColumn in myDataTable.Columns)
        {
            string fieldValue = dr[dataColumn].ToString();   
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a newbie and developing a website using ASP .Net 2.0 with C#
Another .net newbie question I created a class that inherits System.Web.UI.Page with the intention
Newbie question: There are three types of Asp.Net controls : HTML server controls, Web
i'm newbie at web developing. i have some input form.i'm using jquery 1.4.2 inside
PHP newbie here. I'm currently developing a shopping cart web site using PHP and
AJAX newbie here! At the moment in my ASP.NET MVC web app my AJAX
I'm a real newbie for ASP.NET web development, having a background in Java. A
Newbie question. I'm developing a web application (I'm using Flex/AS3, but for the purposes
I'm a python newbie and starting out with using the Bottle web framework on
Newbie question: I just installed VisualSVN Server and created a repository. I noticed that

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.