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

  • Home
  • SEARCH
  • 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 9124383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:33:35+00:00 2026-06-17T06:33:35+00:00

For a special requirements, we have created our own HTML table it works like

  • 0

For a special requirements, we have created our own HTML table it works like a grid view. It gets its data from a DataTable and populates the TD and TR cells

We want to implement the Grouping functionality just like the grid view, where we specify the column name and all the values are grouped.

How can I perform the grouping directly in the DataTable and then output the rows as it is ? Can I use Linq ? Please help by directing towards an example.

  • 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-17T06:33:36+00:00Added an answer on June 17, 2026 at 6:33 am

    You could try converting your DataTable to IEnumerable using AsEnumerable (make sure you add a reference to System.Data.DataSetExtensions).

    Then use GroupBy to group your data. It will return IEnumerable<IGrouping<TKey, TSource>> where each IGrouping<TKey, TElement> object contains a collection of objects and a key. Example:

    var groups = dt.AsEnumerable().GroupBy( r => r.Field<string>("someField") );
    

    Update:
    You may group by using multiple fields (see example) or by nesting them (see example)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have some special requirements: From our application, launch a ClickOnce application. It will
Applications which run on mobile devices have special user interface requirements. I think Apple
I have a bit of a special requirement when combining lists. I will try
I have a requirement to implement contact database. This contact database is special in
I trying to connect to a Java Service with some special security requirements It
Is there any special function to parse a .conf file in php like parse_ini_file()
We have a special requirement in a project where we have to parse a
I want to allow my users to input HTML. Requirements Allow a specific set
I have created a user login Dialog Box in MFC, which have two edit
I have requirements to configure IIS 6 to host a WCF service targeting .NET

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.