Gridview row - colspan

Posted on 2006-06-04
Last Modified: 2008-01-16
I have a grid with 4 columns. I am adding a row template to the grid code that I would like to stretch out the link of the grid. So a colspan of 4.

How can this be done? Not sure that it can!!


Question by:jrmcdona
    LVL 12

    Accepted Solution

    Not that easy anyway, I've streched one col by setting col 2-4 unvisible and increase the width of col 1. The best way is probably to use the repeater. When do you want to streach out the col? How do you like your grid to look?

    Author Comment

    so what i am doing is that when somebody clicks on the text in the first column, a row will show up underneath using javascript and dhtml. However, currently it is only being shown in the first column. I want the hidden row to be the length of the grid because it contains a bunch of text.

    something like this:

    column1   column2   column3     column4
    row1col1  row1col3   row1col3   row1col4


    LVL 12

    Expert Comment

    yes, then you should use the repeater, gridview is one table for all cells, no colspan. (afaik)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now