Getting values from textbox in a datagrid
I have a Datagrid with five Columns
Serail
Product
Price
Qty(textbox)
Order(Button)
now i want user to enter the Qty and clicks order for that column i shud get Text entered in the qty and Serial of the Product
can please nay one help me out
i don't want to put another button or link for edit and update
Qty field is not in the database
Re: Getting values from textbox in a datagrid
I'm assuming you're already handling the button click event?
PHP Code:
//Get the integer counter number for the row whose button was clicked
Then,
TextBox txtQty = (TextBox)dgGridName.Items[counter].FindControl("txtQuantity");
txtQty.Text will then give you the value.
Re: Getting values from textbox in a datagrid
I Am Using Asp.Net If anyone can halp me in this
Re: Getting values from textbox in a datagrid
Am I invisible? :confused: