Custom Validator inside datagrid

Discussion in 'ASP .Net' started by Niclas, Jan 3, 2006.

  1. Niclas

    Niclas Guest

    Hi,

    I would like to use the custom validator control to validate a textbox in a
    Item template within a datagrid. The post is done by the user clicking a
    ImageButton within another Template column in the same grid. My problem is
    how to determine what row the imagebutton clicked was at to retrieve a
    reference to the textbox I want to validate the data in. I was hoping to
    capture this in the Item_Command event, but the validation seem to occur
    before this event is run

    Does anyone have a sample to how this should be done ?

    Niclas
     
    Niclas, Jan 3, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephan Bour

    Custom validator inside DataGrid

    Stephan Bour, Jan 16, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    5,437
    Peter Blum
    Jan 16, 2004
  2. Replies:
    0
    Views:
    357
  3. Replies:
    4
    Views:
    904
    Richter~9.6
    Feb 13, 2007
  4. Scott Yenor

    How to get custom control to work with custom validator

    Scott Yenor, Jan 27, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    213
    Scott Yenor
    Jan 27, 2004
  5. Radu
    Replies:
    0
    Views:
    287
Loading...

Share This Page