Categories | Question details Back To List | ||
Header and Attachheader Hi, I have a grid and the grid header is a complex header. I want the grid header to look like |100px|100px|70px|30px|70px|30px|100px|100px| Header (Data are the size of the columns that i want) |100px|100px| 100px | 100px |100px|100px| Attached Header (Data are the size of the columns that i want) The syntax that i have tried and failed. Response.write "<column width="100"> Data </Column> If (Condition) then Response.write "<column width="70"> Data </Column> Response.write "<column width="30"> #cspan</Column> end If Values="#rspan" for i=1 to number_of_columns-1 Values=Values & "," & "#rspan" Response.write "<attachheader>" Response.write <param> Values </param> Response.write "</attachheader>" Could you pleaase suggest me on how to acheive the above mentioned structure of the grid? Answer posted by Support on May 08, 2008 09:26 The necessary syntax will be <head> <column width="100">A1</column> <column width="100">A2</column> <column width="70">A3</column> <column width="30">A4</column> <column width="70">A5</column> <column width="30">A6</column> <column width="100">A7</column> <column width="100">A8</column> <afterInit> <call command=""><param>B1,B2,B3,#cspan,B5,#cspan,B7,B8</param></call> </afterInit> </head> Answer posted on May 08, 2008 22:11 Thanks for the reply. It is working but the header and body are not in sync. When i try to resize the column header, only the body part of the grid is getting resized. The header part is not getting resized. Is there any functionality as spiltting a cell(not the column) into two. If it is possible please let me know the syntax.
Answer posted by Support on May 14, 2008 09:45 >>It is working but the header and body are not in sync. The sample code provided in previous answer works correctly for me. Colspans in grid header must not cause any effect on grid resize. If problem still occurs for you - please send any kind of sample where it can be reconstructed >>Is there any functionality as spiltting a cell(not the column) into two The cell itself can't be split , the only way - create additional columns and merge them where it necessary. |