CustomValidator inside Datagrid

Discussion in 'ASP .Net Datagrid Control' started by Trauckos, Oct 29, 2004.

  1. Trauckos

    Trauckos Guest

    How i can validate a CustomValidator inside datagrid

    Thanks
     
    Trauckos, Oct 29, 2004
    #1
    1. Advertising

  2. There are problems trying to implement cell by cell validation using the
    grid's Validating event architecture. The problem is that the grid is not the
    object handling the data. Instead, a TextBox or some other control is the
    control managing the changing of the cell contents. One way to implement the
    validation at the grid level is to handle the CurrentCellChanged event, and
    if the previous cell's value is not proper, then return to that cell. You can
    download a sample that implements this process. The sample only handles the
    validation from cell to cell movement. If you want to handle the validation
    when the user clicks on the forms Close button, then you would have to add a
    special event handler for this and do one last validation at this point.

    http://www.syncfusion.com/faq/winforms/Files/datagridvalidation.zip


    "Trauckos" wrote:

    > How i can validate a CustomValidator inside datagrid
    >
    > Thanks
    >
    >
    >
     
    Fernando Hunth, Dec 10, 2004
    #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. Christophe

    customValidator in DATAGRID

    Christophe, Aug 11, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    386
    Christophe
    Aug 11, 2003
  2. Replies:
    1
    Views:
    5,233
  3. Anton
    Replies:
    1
    Views:
    4,033
    miher
    Sep 6, 2009
  4. David Thielen

    CustomValidator inside Repeater is ignored

    David Thielen, Oct 23, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    703
    David Thielen
    Oct 23, 2006
  5. Paulo Costa

    CustomValidator inside a DetailsView

    Paulo Costa, Jul 3, 2008, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    348
    Paulo Costa
    Jul 3, 2008
Loading...

Share This Page