T
Tr
Hello,
Posted this over on the ADO.net group but it belongs here.
I am working on a ASP page with a datagrid that has 5 columns that I bind
to
a datatable which is filled via the ReadXml parser.
Once this data is there I need a way to:
1) Segregate each unique group of data that has the same value in one of
the
fields.
(ie DataRow dr["col1"] = 'A' - A data, DataRow dr["col1"] = 'B' - B
data, etc )
For the A data the data grid would have headers H1, H2, H3, H4, H5
data: d1
d2 d3 d4 d5
For the B data the data grid would have H1,
H5
d1 d5
Something different for C data H1, H3,
H5
d1 d3 d5
This must occur within the same datagrid D1.
I have figured out how to get the unique headers into the datagrid by
checking the data from the dataset but getting that
special label row in the right place along with its associated data escapes
me.
2) Ensure that I capture the first instance of B data in col1 and insert
that label row into the grid.
I have already used unique datagrid for each set of data but that wasn't
pretty enough for the customer because the columns didn't
line up from one grid to the next.
Any Help is appreciated,
Trez
PS. Using C#
Posted this over on the ADO.net group but it belongs here.
I am working on a ASP page with a datagrid that has 5 columns that I bind
to
a datatable which is filled via the ReadXml parser.
Once this data is there I need a way to:
1) Segregate each unique group of data that has the same value in one of
the
fields.
(ie DataRow dr["col1"] = 'A' - A data, DataRow dr["col1"] = 'B' - B
data, etc )
For the A data the data grid would have headers H1, H2, H3, H4, H5
data: d1
d2 d3 d4 d5
For the B data the data grid would have H1,
H5
d1 d5
Something different for C data H1, H3,
H5
d1 d3 d5
This must occur within the same datagrid D1.
I have figured out how to get the unique headers into the datagrid by
checking the data from the dataset but getting that
special label row in the right place along with its associated data escapes
me.
2) Ensure that I capture the first instance of B data in col1 and insert
that label row into the grid.
I have already used unique datagrid for each set of data but that wasn't
pretty enough for the customer because the columns didn't
line up from one grid to the next.
Any Help is appreciated,
Trez
PS. Using C#