Validation in GridViews

Discussion in 'ASP .Net' started by randy.buchholz, Aug 8, 2008.

  1. I have an application with many GridViews used to select records for further
    processing. Usually a value from a dd or text box and a selection from the
    grid are required to proceed (using a button event). RequiredField
    Validators work fine for the single field controls (dd, tb, etc) I am
    looking for a simple/consistant client side way to validate that a row has
    been selected. Preferably using some type of control (most of the team have
    never worked with asp, web, or C# and I want to keep things simple). I am
    currently validating server side with
    if (gv_XXX.selectedRow != null)....
    but would like to try to adapt a control to do this. With so many things
    for the team to learn I don't want to have to have them learn scripting too
    at this point. Thanks.
    randy.buchholz, Aug 8, 2008
    #1
    1. Advertising

  2. Using a different workaround but not a good solution as this still
    roundtrips.

    I am using a rowselected event to write to a label and validating the label.

    Still hoping for a real solution.

    "randy.buchholz" <> wrote in message
    news:Oa0DsSW%...
    >I have an application with many GridViews used to select records for
    >further processing. Usually a value from a dd or text box and a selection
    >from the grid are required to proceed (using a button event).
    >RequiredField Validators work fine for the single field controls (dd, tb,
    >etc) I am looking for a simple/consistant client side way to validate that
    >a row has been selected. Preferably using some type of control (most of
    >the team have never worked with asp, web, or C# and I want to keep things
    >simple). I am currently validating server side with
    > if (gv_XXX.selectedRow != null)....
    > but would like to try to adapt a control to do this. With so many things
    > for the team to learn I don't want to have to have them learn scripting
    > too at this point. Thanks.
    >
    randy.buchholz, Aug 8, 2008
    #2
    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. Replies:
    0
    Views:
    4,757
  2. Roy
    Replies:
    0
    Views:
    1,170
  3. Roy
    Replies:
    1
    Views:
    3,801
  4. Hennie
    Replies:
    2
    Views:
    381
    tfsmag
    Jul 11, 2006
  5. Eddie
    Replies:
    0
    Views:
    309
    Eddie
    Jul 11, 2006
Loading...

Share This Page