E43509
Posts: 283
|
Posted: 02/02/2004, 7:40 AM |
|
On my grid, I really want some of the repeating data to no display over and over again (ie like name). Any ideas on how to do this in vb.net
My grid looks like
Name training
Tom english 102
Tom history 101
Tom science 200
Bill english 102
Bill music 200
I want it to display as:
Tom english 102
history 101
science 200
Bill english 102
music 200
|
|
|
Rick
Posts: 52
|
Posted: 02/02/2004, 9:10 AM |
|
I think think the following should work.
1. Use the Before Show Row event of the grid to do following in code.
2. Check each new row (except the very first row read) to see if the name (key) is the same as the previous row.
3. If it is the same person then move blank value "" to name label so the name is not displayed.
That should do it.
Rick
|
|
|
E43509
Posts: 283
|
Posted: 02/02/2004, 10:17 AM |
|
Sounds good. I'm new to asp.net and I don't quite understand the scoping of variables. How would I 'save' the previous value or get the previous row value to compare. I assume I need to store it somewhere
|
|
|
E43509
Posts: 283
|
Posted: 02/02/2004, 10:17 AM |
|
Sounds good. I'm new to asp.net and I don't quite understand the scoping of variables. How would I 'save' the previous value or get the previous row value to compare. I assume I need to store it somewhere
|
|
|
E43509
Posts: 283
|
Posted: 02/02/2004, 11:55 AM |
|
Got the answer from CCS support. They have the solution in the help file.
Please refer to CCS Help/Examples and Techniques/Programming/Simple Reporting/
Simple Report with Simple Grouping.
|
|
|