Datagrid Cell Focus

Discussion in 'ASP .Net' started by Rick, Nov 4, 2003.

  1. Rick

    Rick Guest

    How can I give focus to the first, editable cell (textbox)
    in a datagrid after the user has opened the row for edit?
    Rick, Nov 4, 2003
    1. Advertisements

  2. Hi
    In my notes I had this:

    I hope can be useful

    Giorgio Parmeggiani, Nov 4, 2003
    1. Advertisements

  3. Hi Rick,

    Firstly I want to thank Giorgio's great help on this issue. Please check
    his response carefully.

    In addition, while using the method mentioned in the url, please use the
    findcontrol method on the datagrid inside the EditCommand handler to get a
    reference to the first textbox inside the datagriditem where the edit event
    was fired.

    I hope it helps.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    Get Secure! ┬ĘC
    This posting is provided "as is" with no warranties and confers no rights.
    Jacob Yang [MSFT], Nov 5, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.