locked
How to get rid of Asp.net Grid ROWS layout. RRS feed

  • Question

  • User192086165 posted

    How to get rid of ASp.Net Grid Rows layout

    (<table><tr><td>Row1</td><tr></table>)

    (<table><tr><td>Row2</td><tr></table>)

    (<table><tr><td>Row3</td><tr></table>)

    If want this layout  (row1, row2, row3) .

    Like in Asp.Net Datalist there is an option "RepeatLayout="flow" "  i want to use this layout in asp.gridview

    Monday, May 7, 2012 10:32 AM

Answers

  • User192086165 posted

    i found the solution.  if you are using datagrid , and you want to show multiple records in one row. you may no need to use , repeater , or dataset , datatable , simple do one thing.

    <div id="grdTest">

    //////// grid view Here /////

    </div>

    and add this to your CSS

    #grdstyle br ,tr
    {
        
        display:inline;
        
        
        }


    its fully resolved my issue , may this trick will be also helping for you

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 7, 2012 11:26 AM

All replies