Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 28th, 2005, 01:51 PM
Authorized User
 
Join Date: Oct 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default Suppress a column value in repeater, datalist ...

Hi all,

I have a question about how to suppress the data for a column in a repeater, datalist or datagrid in ASP.net.
For example I just want to display the order# whenever the value is not the same as last row.

 Order # Item Qty
----------|--------|----------|---------
 A000001 01 10
----------|--------|----------|---------
                  02 14
----------|--------|----------|---------
                  03 15
----------|--------|----------|---------
 A000002 01 12
----------|--------|----------|---------
 A000003 01 10
----------|--------|----------|---------


Regards,

John


 
Old June 29th, 2005, 07:38 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

One way would be to spin thru the data object and clear out those values that repeat.

-Peter
 
Old June 29th, 2005, 11:02 AM
Authorized User
 
Join Date: Oct 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for you reply and it's is the last option if we do know the beter way.

John

 
Old June 29th, 2005, 09:47 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Alternatively, you could handle the item created event of the control (this may only apply to the DataGrid) and manually change the result.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Suppress zeros from displaying smatyk SQL Server 2000 8 October 27th, 2006 08:12 AM
hyperlink in nested datalist calling a repeater debjanib C# 1 May 25th, 2006 08:17 AM
Master detail with datalist or repeater ceema ASP.NET 1.0 and 1.1 Professional 0 August 30th, 2005 03:20 PM
Datalist , Datagrid, or Repeater question olambe BOOK: ASP.NET Website Programming Problem-Design-Solution 7 June 1st, 2004 01:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.