Is there a property or mechanism to show a grid name above the grid column heading...as in a single row above the column header. This can be done in the windows grid so was wondering if a similar property/feature is available with the webdatagrid...
Hello,
Currently there is no builtin functionality available to do this. A row can be added before the header in javascript as follows:
function WebDataGrid_Initialize() { var grid = $find("WebDataGrid1"); var hdr_area = grid._headingArea; hdr_area.insertRow(0); hdr_area.rows[0].innerText = "WebDataGrid Header1"; }
Thanks,
Valerie
Do you have any other questions about headers in the WebDataGrid?
Thanks
Hi,
I just wanted to follow up and see if you were able to resolve this. Please let us know if we can provide you with any further assistance. Thanks.
Please let me know what version of NetAdvantage you are using and what options you have set on the WebDataGrid.
I tried your suggestion but there is no new line on the header of the grid. the code does execute fine and is able to find the grid object but no visible change in the grid. I'm calling this function from the Client side event when the grid is being initialized.
function g_FleetMgt_Grid_Initialize() {
var grid = $find("ContentPlaceHolder1_g_FleetMgt");
var hdr_area = grid._headingArea;
hdr_area.insertRow(0);
hdr_area.rows[0].innerText =
"Fleet Management";
}