Hi. I have a datagrid that gets binded from a mySql query.
I use all bound columns. I need one of the colums to be a text box which after the user types in a value (i use ontextchanged), I need a function to be called which runs some queries from Mysql and gives a Yes or No response. I know how to do all of this except the part of calling the function with a parameter that indicates the row or record the text box is coming from.
Here is my code for the textbox column
<asp:TemplateColumn HeaderText="Square Feet">
<ItemTemplate >
<asp:textbox runat="server" width="60" ontextchanged="FindSF"/>
</ItemTemplate >
</asp:TemplateColumn>
I have used the
DataBinder.Eval(Container.DataItem,"DataField") as an argument before. Is this what I need to use again?
Thanks. If this question is not clear, please ask further questions.
I use all bound columns. I need one of the colums to be a text box which after the user types in a value (i use ontextchanged), I need a function to be called which runs some queries from Mysql and gives a Yes or No response. I know how to do all of this except the part of calling the function with a parameter that indicates the row or record the text box is coming from.
Here is my code for the textbox column
<asp:TemplateColumn HeaderText="Square Feet">
<ItemTemplate >
<asp:textbox runat="server" width="60" ontextchanged="FindSF"/>
</ItemTemplate >
</asp:TemplateColumn>
I have used the
DataBinder.Eval(Container.DataItem,"DataField") as an argument before. Is this what I need to use again?
Thanks. If this question is not clear, please ask further questions.