Solved

Hide duplicate text in GridView Rows

Posted on 2009-07-10
4
1,982 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

729 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