[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Show Group And Detail Using Datagridview.

Posted on 2009-04-22
Medium Priority
Last Modified: 2012-05-06

I have table below:


1. ItemCode
2. ItemName.
3. ItemGroup.


ItemCode   ItemName   ItemGroup
SFD             Softdrink    
CCL            Coca Cola    SFD            
FNT             Fanta           SFD            
SPR             Sprite          SFD            
ACL             Alcohol
TQL             Tequila        ACL
VDK             Vodka         ACL

I want to show it to datagridview like below:

SFD - SoftDrint
     CCL - Coca Cola
     FNT - Fanta
     SPR - Sprint

How could I do it?

Thank you.
Question by:emi_sastra
  • 2
LVL 53

Accepted Solution

Dhaest earned 2000 total points
ID: 24204744
Currently, .Net2.0 DataGridView control did not provide the build-in row grouping function, and I do not think there is any easy way to customizing this function.

I know a 3rd party Grid control which implemented this function, if you are curious, you can give it a look:
LVL 53

Assisted Solution

Dhaest earned 2000 total points
ID: 24204751

Author Comment

ID: 24204948
Hi Dhaest,

It helps.

Thank you very much for your help.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month19 days, 7 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question