Separator in DataGrid

O

Oleg Ogurok

Hi all,

How can I make use of ListItemType.Separator with DataGrid? I can't seem to
find where to enable it or set its format. Thanks.

-Oleg.
 
O

Oleg Ogurok

I'm trying to implement sub-total rows, and I was thinking about using
separators for that. Is there a way?

-Oleg.
 
A

Alvin Bruney

you can do the same with a row or two.

if row 1 thru 10 has your items and you need a subtotal on row 11, remove
all of the cells except the first one in row 11. then use the first cell's
rowspan property to stretch from one end of the grid to the other. add
"-----" to the text property of that spanned cell. this will create a totals
effect. on the 12 row, use the dataset's compute property to total rows 1
thru 10 and stick the result in row 12 underneath the "--------"
your grid would look like
1
2
[snip]
10
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top