By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,505 Members | 1,034 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,505 IT Pros & Developers. It's quick & easy.

Split datagrid into newspaper-style columns?

P: n/a
Is there a way to divide a datagrid into "newspaper" style columns so that
column 1 would have rows 1-10, column two would have rows 11-20 etc?

Thanks, Dave.
Mar 16 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi Dave,

Yes, it's possible. One way is to build a new datatable and manually refill
data to the datatable according to your structure. Then binding the datatable
with datagrid.

HTH

Elton Wang

"Dave" wrote:
Is there a way to divide a datagrid into "newspaper" style columns so that
column 1 would have rows 1-10, column two would have rows 11-20 etc?

Thanks, Dave.

Mar 16 '06 #2

P: n/a
Thanks, I'll look into that. I also found this sample of the DataList.

http://www.asp.net/QuickStart/aspnet...aList1_vb.aspx.

The only issue is that I'll need a white space between the columns and I
want the cells high lighted as:

silver silver silver
white white white
etc.

In the example if you pick 3 column vertical table it comes out.

white white silver
silver silver white

I can't figure out how to use the AlternatingStyles to make it look the way
I want.

Dave.

"Elton W" wrote:
Hi Dave,

Yes, it's possible. One way is to build a new datatable and manually refill
data to the datatable according to your structure. Then binding the datatable
with datagrid.

HTH

Elton Wang

"Dave" wrote:
Is there a way to divide a datagrid into "newspaper" style columns so that
column 1 would have rows 1-10, column two would have rows 11-20 etc?

Thanks, Dave.

Mar 17 '06 #3

P: n/a
Hi Dave,

Try to fit your total record as 6 x number, e.g. 6, 12, 18, ... to see what
happens. So you can understand AlternatingStyles how to affect it.
HTH

Elton

"Dave" wrote:
Thanks, I'll look into that. I also found this sample of the DataList.

http://www.asp.net/QuickStart/aspnet...aList1_vb.aspx.

The only issue is that I'll need a white space between the columns and I
want the cells high lighted as:

silver silver silver
white white white
etc.

In the example if you pick 3 column vertical table it comes out.

white white silver
silver silver white

I can't figure out how to use the AlternatingStyles to make it look the way
I want.

Dave.

"Elton W" wrote:
Hi Dave,

Yes, it's possible. One way is to build a new datatable and manually refill
data to the datatable according to your structure. Then binding the datatable
with datagrid.

HTH

Elton Wang

"Dave" wrote:
Is there a way to divide a datagrid into "newspaper" style columns so that
column 1 would have rows 1-10, column two would have rows 11-20 etc?

Thanks, Dave.

Mar 17 '06 #4

P: n/a
Thanks, but I guess I'm not following.

"Elton W" wrote:
Hi Dave,

Try to fit your total record as 6 x number, e.g. 6, 12, 18, ... to see what
happens. So you can understand AlternatingStyles how to affect it.
HTH

Elton

"Dave" wrote:
Thanks, I'll look into that. I also found this sample of the DataList.

http://www.asp.net/QuickStart/aspnet...aList1_vb.aspx.

The only issue is that I'll need a white space between the columns and I
want the cells high lighted as:

silver silver silver
white white white
etc.

In the example if you pick 3 column vertical table it comes out.

white white silver
silver silver white

I can't figure out how to use the AlternatingStyles to make it look the way
I want.

Dave.

"Elton W" wrote:
Hi Dave,

Yes, it's possible. One way is to build a new datatable and manually refill
data to the datatable according to your structure. Then binding the datatable
with datagrid.

HTH

Elton Wang

"Dave" wrote:

> Is there a way to divide a datagrid into "newspaper" style columns so that
> column 1 would have rows 1-10, column two would have rows 11-20 etc?
>
> Thanks, Dave.
>
>

Mar 18 '06 #5

P: n/a
I mean only if the total records fit special number, it can be shown in your
pattern.

For example, there are six records. It shows

1 (W) 3 (W) 5 (W)
2 (S) 4 (S) 6 (S)

But if its 7 records, it shows

1 (W) 4 (S) 6 (S)
2 (S) 5 (W) 7 (W)
3 (W)

if 8 records

1 (W) 4 (S) 7 (W)
2 (S) 5 (W) 8 (S)
3 (W) 6 (S)

Hence, its very hard to use AlternatingItemStyle to give a wanted pattern.

HTH

Elton
"Dave" wrote:
Thanks, but I guess I'm not following.

"Elton W" wrote:
Hi Dave,

Try to fit your total record as 6 x number, e.g. 6, 12, 18, ... to see what
happens. So you can understand AlternatingStyles how to affect it.
HTH

Elton

"Dave" wrote:
Thanks, I'll look into that. I also found this sample of the DataList.

http://www.asp.net/QuickStart/aspnet...aList1_vb.aspx.

The only issue is that I'll need a white space between the columns and I
want the cells high lighted as:

silver silver silver
white white white
etc.

In the example if you pick 3 column vertical table it comes out.

white white silver
silver silver white

I can't figure out how to use the AlternatingStyles to make it look the way
I want.

Dave.

"Elton W" wrote:

> Hi Dave,
>
> Yes, it's possible. One way is to build a new datatable and manually refill
> data to the datatable according to your structure. Then binding the datatable
> with datagrid.
>
> HTH
>
> Elton Wang
>
> "Dave" wrote:
>
> > Is there a way to divide a datagrid into "newspaper" style columns so that
> > column 1 would have rows 1-10, column two would have rows 11-20 etc?
> >
> > Thanks, Dave.
> >
> >

Mar 18 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.