Bud Fox February 2016

ASP.NET Webform - How to place FormView and GridView next to each other

In my webform I have a gridview and a formview. The formview always appears under the gridview. How do I move the Formview to the right of the gridview?

Answers


Aristos February 2016

GridView and FormView are render as tables, so one way is to use one warper table to place it side by side. Of course some will say that tables are not modern design and its better to use divs... ok this is just a fast solution.

<table>
    <tr>
        <td>
            <asp:GridView></asp:GridView>    
        </td>
        <td>
            <asp:FormView></asp:FormView>
        </td>
    </tr>
</table>

Post Status

Asked in February 2016
Viewed 3,840 times
Voted 7
Answered 1 times

Search




Leave an answer