Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 February 2nd, 2008, 08:16 PM
Authorized User
 
Join Date: Jun 2006
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to gagansharma7
Default Adding columns to Gridview

Hi,

    I am using a dataset to capture 30 records from a stored procedure and bind it to Gridview. I have to display 30 records in the Gridview in 3 columns such that first 10 records are in column 1, next 10 records are in column 2 and next 10 records are in column 3.

Anybody please let me know how to get such a display.

Thanks
gs
 
Old February 15th, 2008, 10:54 AM
Registered User
 
Join Date: Feb 2008
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

A simple solution i can think of is populating three different datatables in the same dataset with 10 records each and binding them separately to the 3 columns.
like.....
dsDataset.Table[0]
dsDataset.Table[1]
dsDataset.Table[2]






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to freeze GridView columns? MLaGrange BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 September 16th, 2010 10:10 PM
Need to get value of gridview template columns for kmh030 ASP.NET 2.0 Professional 1 January 6th, 2007 11:10 PM
Hyperlinks in GridView Columns monika.oberoi ASP.NET 2.0 Professional 2 December 22nd, 2006 04:21 AM
problem adding two columns g_vamsi_krish SQL Server 2000 2 March 6th, 2006 10:56 AM
Adding optional columns? shaileshmark SQL Server 2000 9 July 24th, 2004 03:57 PM





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