Solved

Hide duplicate text in GridView Rows

Posted on 2009-07-10
4
1,966 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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