Hi,
I am create web application. In this application use gridview and this gridview i am using MaskedEditExtender for template field. but it takes long time to bind data to gridview. But i want less time to bind data to gridview.please help me how to solve this problem in my web application..
<asp:GridView ID="GridView_StudentInfo" runat="server" AutoGenerateColumns="False"
CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDataBound="GridView_StudentInfo_RowDataBound"
OnSelectedIndexChanged="GridView_StudentInfo_SelectedIndexChanged" Width="700px">
<RowStyle BackColor="White" ForeColor="#333333" CssClass="LableGrid" />
<Columns>
<asp:TemplateField HeaderText="Serial No">
<EditItemTemplate>
<asp:Label ID="lblSerialNo" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblSerialNo" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" />
</asp:TemplateField>
<asp:BoundField DataField="StudentName" HeaderText="Student Name">
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="150px" />
</asp:BoundField>
<asp:TemplateField HeaderText="Presenty Status">
<ItemTemplate>
<center>
<asp:UpdatePanel ID="Panel" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<asp:RadioButton ID="RBPH" runat="server" AutoPostBack="true" GroupName="CheckRadiobuttons"
OnCheckedChanged="RBPH_CheckedChanged" Text="P" ToolTip="Present" />
<asp:RadioButton ID="RBAH" runat="server" AutoPostBack="true" GroupName="CheckRadiobuttons"
OnCheckedChanged="RBAH_CheckedChanged" Text="A" ToolTip="Absent" />
<asp:RadioButton ID="RBLH" runat="server" AutoPostBack="true" GroupName="CheckRadiobuttons"
OnCheckedChanged="RBLH_CheckedChanged" Text="L" ToolTip="Late" />
<asp:RadioButton ID="RBHH" runat="server" AutoPostBack="true" GroupName="CheckRadiobuttons"
OnCheckedChanged="RBHH_CheckedChanged" Text="H" ToolTip="Half Day" />
<asp:RadioButton ID="RBSH" runat="server" AutoPostBack="true" GroupName="CheckRadiobuttons"
OnCheckedChanged="RBSH_CheckedChanged" Text="S" ToolTip="SwapIn" />
</ContentTemplate>
</asp:UpdatePanel>
</center>
</ItemTemplate>
<HeaderTemplate>
<center>
Presenty<br />
<asp:UpdatePanel ID="Panel" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<asp:RadioButton ID="RBP" runat="server" AutoPostBack="true" GroupName="CheckRadiobutton_h"
OnCheckedChanged="RBP_CheckedChanged" Text="P" ToolTip="Present" />
<asp:RadioButton ID="RBA" runat="server" AutoPostBack="true" GroupName="CheckRadiobutton_h"
OnCheckedChanged="RBA_CheckedChanged" Text="A" ToolTip="Absent" />
<asp:RadioButton ID="RBL" runat="server" AutoPostBack="true" GroupName="CheckRadiobutton_h"
OnCheckedChanged="RBL_CheckedChanged" Text="L" ToolTip="Late" />
<asp:RadioButton ID="RBH" runat="server" AutoPostBack="true" GroupName="CheckRadiobutton_h"
OnCheckedChanged="RBH_CheckedChanged" Text="H" ToolTip="Half Day" />
<asp:RadioButton ID="RBS" runat="server" AutoPostBack="true" GroupName="CheckRadiobutton_h"
OnCheckedChanged="RBS_CheckedChanged" Text="S" ToolTip="SwapIn" />
</ContentTemplate>
</asp:UpdatePanel>
</center>
</HeaderTemplate>
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="170px" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Bottom" Width="170px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="From Time">
<ItemTemplate>
<asp:TextBox ID="txtFromTime_Details" runat="server" CssClass="TextBoxAll" Height="18px"
MaxLength="8" OnBlur="this.style.borderColor=''" OnFocus="this.style.borderColor ='#6600CC'"
TabIndex="3" ValidationGroup="MKE" Width="60px"></asp:TextBox>
<asp:MaskedEditExtender ID="MaskedEditExtender4" runat="server" AcceptAMPM="True"
ErrorTooltipEnabled="True" Mask="99:99" MaskType="Time" MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtFromTime_Details" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="StudentId" Visible="False">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("UserId") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("UserId") %>'></asp:TextBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Bottom" />
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" CssClass="LableDisp" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" CssClass="LableDisp" />
<EditRowStyle BackColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" CssClass="LableDisp" />
</asp:GridView>