C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Having two row values on the same row

rated by 0 users
This post has 4 Replies | 0 Followers

Top 75 Contributor
Posts 69
jorgebastos Posted: Fri, Jun 12 2009 12:43 PM

Howdy,

I'm trying to achieve something that i don't know how to call it, here is a "paint made" screenshot of what i would like.
I need to have a header that can have "two rows" for two diferent titles,  and for each row that is going to contain data, i need two rows "per row".

I may not have explained my self...can you give me some light?

Jorge,
 

Top 75 Contributor
Posts 69

Forgot my "screenshot"

http://neotrix.decimal.pt/dbmail/aaa.jpg

Top 25 Contributor
Posts 477
Hi,

depending on your usage of the flexgrid, this may be easy. If you fill the grid
yourself, you can use two grid rows for one logical row:

this.c1FlexGrid[iRow, iCol] = "Data for first row";
this.c1FlexGrid[iRow + 1, iCol] = "Data for second row";

If you use column sorting, this will require additional work (you have to build
a custom comparer, which handles the row "groups").

If you use databinding, this will probably not be possible.

Does this help?

Wolfgang
Top 75 Contributor
Posts 69

I use .datasource = some_datatable/dataset

Can you post more info about this?
 

Top 25 Contributor
Posts 477
Hi,

I think with a DataSource this is not possible. You will have to loop over it
and write the data to the grid yourself.

Best regards

Wolfgang
Page 1 of 1 (5 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.