日期:2014-05-18  浏览次数:20447 次

GridView除了绑定字段列外,一个模板列中放置了CheckBox,其余的四个模板列分别放置了TextBox1 - 4,绑定后几乎死机
<DIV style="PADDING-RIGHT: 20px; PADDING-LEFT: 20px; PADDING-BOTTOM: 20px; WIDTH: 540px; PADDING-TOP: 20px; HEIGHT: 436px; BACKGROUND-COLOR: #bfbfcd">
<DIV style="position: relative;overflow: auto; WIDTH: 529px; HEIGHT: 399px; BACKGROUND-COLOR: #f3f8fd; left: 0px; top: 0px;"; left: 0px; top: 0px;">
<cc1:TYGridView id="GVPPrice" runat="server" Width="509px" AutoGenerateColumns="False" BackColor="White" GridLines="None" BorderStyle="None" DataKeyNames="Product_ID" Height="123px" PageSize="10" >
<FooterStyle BackColor="White" ForeColor="White" Font-Bold="True"></FooterStyle>
<Columns>
<asp:TemplateField><ItemTemplate>
<asp:CheckBox id="checker" runat="server" __designer:wfdid="w14"></asp:CheckBox> 
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Product_ID" HeaderText="<%$ Resources:productid %>"></asp:BoundField>
<asp:BoundField DataField="Product_Name" SortExpression="Product_Name" HeaderText="<%$ Resources:productname %>"></asp:BoundField>
<asp:TemplateField HeaderText="<%$ Resources:xzprice %>"><ItemTemplate>
<asp:TextBox id="TxtxzPrice" runat="server" Width="76px" __designer:wfdid="w19"></asp:TextBox> <asp:RangeValidator id="RangeValidator1" runat="server" __designer:wfdid="w20" Type="Double" ControlToValidate="TxtxzPrice" ErrorMessage="*" MinimumValue="0" MaximumValue="100000"></asp:RangeValidator> 
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="<%$ Resources:bjprice %>"><ItemTemplate>
<asp:TextBox id="TxtbjPrice" runat="server" Width="76px" __designer:wfdid="w21"></asp:TextBox><asp:RangeValidator id="RangeValidator2" runat="server" __designer:wfdid="w22" Type="Double" ControlToValidate="TxtbjPrice" ErrorMessage="*" MinimumValue="0" MaximumValue="100000"></asp:RangeValidator>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="<%$ Resources:ymprice %>"><ItemTemplate>
<asp:TextBox id="TxtymPrice" runat="server" Width="76px" __designer:wfdid="w23"></asp:TextBox><asp:RangeValidator id="RangeValidator3" runat="server" __designer:wfdid="w24" Type="Double" ControlToValidate="TxtymPrice" ErrorMessage="*" MinimumValue="0" MaximumValue="100000"></asp:RangeValidator>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="<%$ Resources:qtprice %>"><ItemTemplate>
<asp:TextBox id="TxtqtPrice" runat="server" Width="76px" __designer:wfdid="w25"></asp:TextBox><asp:RangeValidator id="RangeValidator4" runat="server" __designer:wfdid="w26" Type="Double" ControlToValidate="TxtqtPrice" ErrorMessage="*" MinimumValue="0" MaximumValue="100000"></asp:RangeValidator>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate>
  <table style="width: 397px; backgr