How to Create Controls like Gridview

Posted by Jayakumars under ASP.NET AJAX on 3/27/2013 | Points: 10 | Views : 945 | Status : [Member] [MVP] | Replies : 1

How to Create Controls like Gridview in my own controls and textbox also.

Mark as Answer if its helpful to you


Posted by: Jitendrasoft09 on: 3/28/2013 [Member] [MVP] Starter | Points: 25

We can create user control and can keep inside gridview and textbox that will be accessible anywhere in your web page.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyWebPage.ascx.cs" Inherits="MyControlPage" %>
<asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
<asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
<asp:GridView ID="grdGridView" runat="server" AutoGenerateColumns="true" AllowPaging="True"
OnPageIndexChanging="grdGridView_PageIndexChanging" PageSize="50"

Jitendra Kumar
If my post helps you, plz mark as an answer.

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response