width % and px

I have my datagrid (ewb app) with 1 column not visible, then a column, then other columns of width=10px,10px,20px,20px. Datagrid is in <div style="OVERFLOW-Y: auto; WIDTH: 100%; HEIGHT: 100%;"> which is in a table...

I want size 2nd column to fill remaining part. How

Thx




Answer this question

width % and px

  • NinetyNine

    Hi,

    Try pasting your datagrid % and px size code here so that we have an idea how you set the size of your datagrid column and row. You can try also not setting the datagrid width size, so that by default it will follow the size of your table.

    thnx.

    Michael Castillones



  • Dimitar Birov - MSFT

    Your table need to have a width of 100%, the rest will follow.

    <table width="100%" border="1">
    <tr>
    <td width="30px">a</td>
    <td>a</td>
    <td width="30px">a</td>
    <td width="30px">a</td>
    <td width="30px">a</td>
    </tr>
    </table>



  • natasha23

    Hi there,

    Please post your question to: http://forums.asp.net/.

    Thank you..
    Michael Castillones



  • Michael Andy Poulsen

    My table (100% width) has datagrid in the first row...

    then i have to size datagrid column...



  • Gusti Satria

    Pls could you post it

    I can't join it!

    Thx



  • width % and px