Solved

Hide duplicate text in GridView Rows

Posted on 2009-07-10
4
1,907 Views
Last Modified: 2012-05-07
I am using the code from the below - which works great for the first column - in a simuolated grouping concept - but how would I apply it to other rows in the groups... So that within the "group" - if columns 1,2,3,4, etc. have same value as the row above then NULL or blank text value

http://www.tek-tips.com/faqs.cfm?fid=6665
Capture.JPG
0
Comment
Question by:tbaseflug
4 Comments
 
LVL 1

Expert Comment

by:alpacaman
ID: 24826062
Your best angle to attack the issue is stop the duplicate data from being binded to the gridview in the first place.  If you are using sql to get your data, consider a select distinct query, this will eliminate duplicate fields.  I would concentrate on  getting your query to give you the data you want rather than working on getting the bad data out of the gridview.
0
 
LVL 4

Accepted Solution

by:
ki_ki earned 250 total points
ID: 24852197
alpacaman, if you look at the picture/gridview, you'll see that there is no duplicate row.
tbaseflug,one solution is nested gridview. It will give the results you want:

http://www.codeproject.com/KB/aspnet/SkinSample.aspx
http://www.codeproject.com/KB/aspnet/MultiNestMDGridview.aspx
0
 

Assisted Solution

by:SriChary
SriChary earned 250 total points
ID: 24858167
Hi,

Check this link http://forums.asp.net/t/1053747.aspx
This helped in merging cells inside the gridview.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now