|
-
May 3rd, 2003, 04:47 PM
#1
Thread Starter
PowerPoster
How to add multiple rows to the datagrid for each record.
Hello,
I just wanted to post this here in case anyone can use it. I added a new tutorial/code sample to my site about creating multiple rows in the Web Data Grid for each record in the data source. Take a look if your interested.
http://www.variantx.com/Main/Tutoria...oDataGrid.aspx
I actually have time on my hands right now...lol, so there will probably be more posted in the near future.
-
May 7th, 2003, 12:59 PM
#2
Hyperactive Member
Not sure how you did it (didnt look at ur code) but you can add rows easily to a DataView ..... then bind that with the datagrid...
-
May 7th, 2003, 02:02 PM
#3
Thread Starter
PowerPoster
No, that wasn't what I was going for. If you create multiple rows in the dataview, and bind that to the datagrid, you still will have a different color for each row, even if two rows should be the same color.
I am refering to the display part of the problem.
I have a row I return from the database, which has several columns. I don't want to display all those columns one after another on one row of the datagrid, I want to spread that one row of data to two rows on the datagrid. If I do this by using a dataview, I can split the data to make two rows, but when I bind it to the grid, each of those rows will be considered an Item. When doing this, every other row will be considered an alternating item and hence, colored as such. This will give seperation to the data which is really confusing. I was looking for a way around it, and I that is what the example is.
Last edited by hellswraith; May 7th, 2003 at 02:06 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|