Current location: Hot Scripts Forums » Programming Languages » ASP.NET » Multiple datagrids


Multiple datagrids

Reply
  #1 (permalink)  
Old 02-10-04, 04:05 AM
andreasberglind andreasberglind is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Sweden
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Multiple datagrids

I have a page containing several datagrids, placed one below the other.
Now I would like to place the second one directly under the first one. If the first one returns one row, I want the second one directly below that row. If the first one returns 50 rows I want still the second one to appear below all the rows of the first one. it should be easily solved, or at least I hope so. Does anyone know what to do?
Reply With Quote
  #2 (permalink)  
Old 02-10-04, 11:38 AM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by andreasberglind
I have a page containing several datagrids, placed one below the other.
Now I would like to place the second one directly under the first one. If the first one returns one row, I want the second one directly below that row. If the first one returns 50 rows I want still the second one to appear below all the rows of the first one. it should be easily solved, or at least I hope so. Does anyone know what to do?
<asp:datagrid id="dataGrid1" runat="server"/>
<asp:datagrid id="dataGrid2" runat="server"/>

After processing, the datagrid is just a table. You can modify a few attributes and templates to get what you want.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
  #3 (permalink)  
Old 02-10-04, 11:45 AM
andreasberglind andreasberglind is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Sweden
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
But how do i do that? I´ve been looking for attributes to modify, but I´ve gotten nowhere. Could you give a little more detailed description?
Thanks!
Oh, and I´m coding this in C#, by the way.
Reply With Quote
  #4 (permalink)  
Old 03-24-04, 01:07 AM
northbikerjr northbikerjr is offline
New Member
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Multiple datagrids

Just in case some other newbie needs to do this in the future!

You can easily achieve this by creating a panel on your webpage and then placing the data grids into the panel! At least the panel solved what I needed to accomplish.

Northbikerjr
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting multiple values from list into one field rush989 PHP 1 02-04-04 04:47 AM
multiple class="mainFormBox" - MYSQL dihan PHP 0 01-12-04 03:45 PM
multiple values in one field smallbeer PHP 6 12-17-03 04:45 AM
Multiple dropdown plus link problem bastiaan JavaScript 0 11-17-03 04:22 PM
Mail Script sending multiple times when Table has a lot of data dsumpter PHP 12 07-16-03 05:17 PM


All times are GMT -5. The time now is 02:46 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.