473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Suppress duplicate values in a Datagrid

Is it possible to suppress duplicate values on repeating rows of a
datagrid? For example:

dept. name
------- ------------
acct joe smith
mary jones <--- acct suppressed
payroll mickey mouse
donald duck <--- payroll suppressed

Any thoughts would be greatly appreciated.

Thanks,
Kelly Pearson
Nov 22 '05 #1
3 2380
pm
You would have to do this in the OnItemDataBound event of your grid. By
saving the previous department you can then check and see if it is the same
and then set the fields visibility to false when the saved department equals
the new one.

"Kelly Pearson" wrote:
Is it possible to suppress duplicate values on repeating rows of a
datagrid? For example:

dept. name
------- ------------
acct joe smith
mary jones <--- acct suppressed
payroll mickey mouse
donald duck <--- payroll suppressed

Any thoughts would be greatly appreciated.

Thanks,
Kelly Pearson

Nov 22 '05 #2
pm
You would have to do this in the OnItemDataBound event of your grid. By
saving the previous department you can then check and see if it is the same
and then set the fields visibility to false when the saved department equals
the new one.

"Kelly Pearson" wrote:
Is it possible to suppress duplicate values on repeating rows of a
datagrid? For example:

dept. name
------- ------------
acct joe smith
mary jones <--- acct suppressed
payroll mickey mouse
donald duck <--- payroll suppressed

Any thoughts would be greatly appreciated.

Thanks,
Kelly Pearson

Nov 22 '05 #3

Kelly Pearson wrote:
Is it possible to suppress duplicate values on repeating rows of a
datagrid? For example:

dept. name
------- ------------
acct joe smith
mary jones <--- acct suppressed
payroll mickey mouse
donald duck <--- payroll suppressed

Any thoughts would be greatly appreciated.

Thanks,
Kelly Pearson


Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kelly Pearson | last post by:
Is it possible to suppress duplicate values on repeating rows of a datagrid? For example: dept. name ------- ------------ acct joe smith mary jones <--- acct suppressed payroll ...
9
by: Doug Ly | last post by:
Hi, When I run this query using WinSQL to connect to a DB2 database, it gave me the warning: Error: SQLSTATE 01003: Null values were eliminated from the argument of a column function. ...
2
by: Emilio Jimonerz | last post by:
Hello. I am developing a project tracking database that records the following information: 1. Project name 2. Lead person(s) 3. Support person(s) 4. Clients 5. Contacts The data is organized...
5
by: Steve B. | last post by:
A particular column in my Access DB table, and the associated datagrid, cannot have duplicate string entries. I've selected "Yes (no duplicates)" for the Indexed Field Property of this column in...
3
by: peshrad | last post by:
Hi ! I'm using ASP.NET 1.1 and C# . For Microsoft Internet Explorer 6.0, the following code suppresses the drawing of horizontal and vertical lines in the web page:
1
by: Ken Morris | last post by:
Any ideas on how to suppress the plus sign (+) beside a DataGrid row when that particular parent row has no records in the corresponding child table? This applies to a datagrid for a Windows...
5
by: Antonio | last post by:
Hello, everyone. Is there a way to not display a certain value in a datagrid cell? I have a datagrid for subscriptions and ebooks and if there isn't an e-book listed, the value from the...
4
by: FangQ | last post by:
hi I am very new to mysql. I have a question about using the "on duplicate update" clause with insert command. my table "data" has two columns, field1 and field2, where field1 is the index...
5
by: Kasya | last post by:
HOW CAN I REFRESH PARENT FRAME WITHPUT WITH CONFIRMATION: --------------------------- Windows Internet Explorer --------------------------- To display the webpage again, Internet Explorer needs...
3
by: rajeshkrsingh | last post by:
Hi friends, Step1- create table duplicate ( intId int, varName varchar(50) ) insert into duplicate(intId,varName) values(1,'rajesh') insert into duplicate(intId,varName) values(2,'raj12')...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.