datagrid / gridview grouping

  • 12 years ago

    hi, i'm trying to get a grid to group data horizontally.

     

    ie:

     col1 col2 col3

    1       x     y

    1      a     c

    2      a     b

     

    to be:

     

    1  x   y

       a    c

    2  a    b

     

    I've tried using the gridviewhelper class which is great but alas i have buttons which i bind id's to (and then pass these through as commandarguements to another page).

    The first row's button after the group header loses its arguement - thus ruining the page.

     

    Anyone know any fancy workaround or possible causes?

    thanks!

  • 12 years ago

    Hi,

    When i need to produce output like that, i tend to use grouping sets in oracle to format the SQL output to look like that.

    I am not sure if grouping sets are a standard feature of SQL, but it might be worth looking into

    Regards

    Si

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debugging is anticipated with distaste, performed with reluctance, and bragged about forever.” - Dan Kaminsky