B
Butchi Satuluri
HI,
I am writing a Web User control to display the Data in groups. For each
column of my source dataTable, I created a new DataTable (say dc1,dc2) with
distinct values and created relations in such a way that the Main source
Table is child for all these distinct value DataTables.
Based on the User selections, I am binding the DatabGrid to dc1 (or dc2)
and in it's Template Column-- InstantiateIn, creating another DataGrid to
display the child records from Source Table. This way I am getting the Data
in groups perfectly. At this time, the DataGrid header displays the column
names of dc1, But I want to overwrite with child records's header. So I
created anothet class from iTemplate and assigned to HeaderTemplate of
Template Column. In this HeaderTemplate I created a 3 rd DataGrid displaying
only the header with no data values. Everything is working file.
Problem comes now. When the user clicks on any column for sorting, the
event of the DataGrid in the header is firing. I want to bubble it to main
Grid to handle. Which is not happening. How do I do this.
Regards,
Butchi Satuluri
(e-mail address removed)
I am writing a Web User control to display the Data in groups. For each
column of my source dataTable, I created a new DataTable (say dc1,dc2) with
distinct values and created relations in such a way that the Main source
Table is child for all these distinct value DataTables.
Based on the User selections, I am binding the DatabGrid to dc1 (or dc2)
and in it's Template Column-- InstantiateIn, creating another DataGrid to
display the child records from Source Table. This way I am getting the Data
in groups perfectly. At this time, the DataGrid header displays the column
names of dc1, But I want to overwrite with child records's header. So I
created anothet class from iTemplate and assigned to HeaderTemplate of
Template Column. In this HeaderTemplate I created a 3 rd DataGrid displaying
only the header with no data values. Everything is working file.
Problem comes now. When the user clicks on any column for sorting, the
event of the DataGrid in the header is firing. I want to bubble it to main
Grid to handle. Which is not happening. How do I do this.
Regards,
Butchi Satuluri
(e-mail address removed)