Hi,
I am facing two issues with the Grouping feature in the grid. My dataset looks like this:
Now, I need to group by Vehicle Type (which has been done) and find out -
a. Total US Journeys - Done
b. Total UK Jouneys - Done
c. % Total US Journeys - ??
d. Total US Cargo - Done
b. Total UK Cargo - Done
c. % Total US Cargo - ??
Issue 1: How do I get the Percentage Columns? Do I predefine them (as in specify a separate column in "SelectField" collection as assign the values in the ItemDataBound event)? If yes, what should I mention in the fieldname, fieldalias sections of this particular column?
Issue 2: In the Group header, before the "Calculated Values" I also get the FieldName/FieldAlias (Total US Journeys:25). Is there a way to turn off the column name text? I know I can manipulate the DataCell.Text which I dont want to as this would be not a good standard.
Thanks,
Saurabh
I am facing two issues with the Grouping feature in the grid. My dataset looks like this:
|
Vehicle Type |
Vehicle No. |
US Journeys |
UK Journeys |
% US Journey |
US Cargo |
UK Cargo |
% US Cargo |
|
A |
111 |
5 |
5 |
50 |
4 |
6 |
40 |
|
A |
222 |
2 |
6 |
25 |
5 |
5 |
50 |
|
B |
333 |
3 |
6 |
33.33 |
6 |
6 |
50 |
|
B |
444 |
9 |
2 |
81.82 |
5 |
9 |
35.71 |
Now, I need to group by Vehicle Type (which has been done) and find out -
a. Total US Journeys - Done
b. Total UK Jouneys - Done
c. % Total US Journeys - ??
d. Total US Cargo - Done
b. Total UK Cargo - Done
c. % Total US Cargo - ??
Issue 1: How do I get the Percentage Columns? Do I predefine them (as in specify a separate column in "SelectField" collection as assign the values in the ItemDataBound event)? If yes, what should I mention in the fieldname, fieldalias sections of this particular column?
Issue 2: In the Group header, before the "Calculated Values" I also get the FieldName/FieldAlias (Total US Journeys:25). Is there a way to turn off the column name text? I know I can manipulate the DataCell.Text which I dont want to as this would be not a good standard.
Thanks,
Saurabh