Results 1 to 4 of 4

Thread: Getting values from textbox in a datagrid

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    2

    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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    2

    Re: Getting values from textbox in a datagrid

    I Am Using Asp.Net If anyone can halp me in this

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Getting values from textbox in a datagrid

    Am I invisible?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width