Gridview with subheaders below....
-
Hi, I have a grid view to which i am binding data from the employees table. I am also displaying first name and last name in grid view. now i want the first name and last name under one main sub header name. Below is the example.
EmployeeId ContractNo ContactNo EmployeeName Summary
First LastE001 Co123456 900878634 Xyz Abc PQR
I the above example i want First and Last below the EmployeeName as a subheader, means EmployeeName acts as a main header for First and last. I also need to provide sorting on EmployeeName. Can any one suggest me a solution by some code example or some useful link regarding this in order to provide subheader inside one main header in the same format. solution will be highly appreciated. Regards,
Pranav Dave
-
Hi, I have a grid view to which i am binding data from the employees table. I am also displaying first name and last name in grid view. now i want the first name and last name under one main sub header name. Below is the example.
EmployeeId ContractNo ContactNo EmployeeName Summary
First LastE001 Co123456 900878634 Xyz Abc PQR
I the above example i want First and Last below the EmployeeName as a subheader, means EmployeeName acts as a main header for First and last. I also need to provide sorting on EmployeeName. Can any one suggest me a solution by some code example or some useful link regarding this in order to provide subheader inside one main header in the same format. solution will be highly appreciated. Regards,
Pranav Dave
Will HeaderTemplate work for you?Add a table to header template and add text as you desired. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.templatefield.headertemplate%28VS.80%29.aspx[^]
Arun Jacob http://codepronet.blogspot.com/
-
Hi, I have a grid view to which i am binding data from the employees table. I am also displaying first name and last name in grid view. now i want the first name and last name under one main sub header name. Below is the example.
EmployeeId ContractNo ContactNo EmployeeName Summary
First LastE001 Co123456 900878634 Xyz Abc PQR
I the above example i want First and Last below the EmployeeName as a subheader, means EmployeeName acts as a main header for First and last. I also need to provide sorting on EmployeeName. Can any one suggest me a solution by some code example or some useful link regarding this in order to provide subheader inside one main header in the same format. solution will be highly appreciated. Regards,
Pranav Dave