We help IT Professionals succeed at work.

Update GridView columns after changing column value

BrianM_AZ asked
Hi Experts,
I'm trying to update other columns when a column (tbQty) is changed by the user. I cannot get the "ontextchanged="tbQty_TextChanged" to fire. What am I missing here?

Thanks for the help

<asp:GridView ID="gvTest" runat="server">
                 <asp:TextBox ID="tbQty" runat="server" OnTextChanged="tbQty_TextChanged"></asp:TextBox>
         <asp:BoundField DataField="Price" HeaderText="Price" ReadOnly="true" DataFormatString="{0:c}" />
         <asp:BoundField DataField="Total" HeaderText="Total" ReadOnly="true" DataFormatString="{0:c}" />

Open in new window

Watch Question

Hi.., Add autopostback property  as true to the text box.