View Full Version : Multiple datagrids
andreasberglind
02-10-04, 05:05 AM
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?
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.
andreasberglind
02-10-04, 12:45 PM
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.
northbikerjr
03-24-04, 02:07 AM
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
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.