.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> ASP.NET Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Multiple gridviews in ASP.net web application side by side

Posted By:satyapriyanayak       Posted Date: August 04, 2014    Points: 40    Category: ASP.NET Controls    URL: http://www.dotnetspark.com  

In this Code Snippets we will know Multiple gridviews in ASP.net web application side by side.
 

Method-1

<div>
<table>
<tr>
<td><asp:GridView ID="GridView1" runat="server"></asp:GridView></td>
<td><asp:GridView ID="GridView2" runat="server"></asp:GridView></td>
</tr>
</table>
</div>

Method-2

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm7.aspx.cs" Inherits="WebApplication16.WebForm7" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
    #leftPanel
    {
        width:300px;
        float:left;
        position:relative;
    }
    #rightPanel
    {
        width:300px;
        float:left;
        position:relative;
    }
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="leftPanel">
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
</div>
<div id="rightPanel">
    <asp:GridView ID="GridView2" runat="server">
    </asp:GridView>
</div>
    </form>
</body>
</html>

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend