Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#webapplication
Dear All,
 
I am Making a web application in that there is a one form which consist the Grid dynamically. Also i set the Row code behind.
 
I apply the Requirefield validator but i want to that it only apply in the first row of the grid. if it click the button "add new row" and not enter any value in the textbox and submit then only first row data should be inserted.
 
So, how this can i achieve ?
 
Please help me..........
 
Thanks and Regards,,,,,
Mitesh
Posted 2-Oct-12 2:19am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi
 
Hi Use the ValidatioGroup.
 
please have a look on this link
http://www.codedigest.com/Articles/ASPNET/26_Validation_group_in_ASPNet_20.aspx[^]
 
Hope that will help you.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,518
1 Tadit Dash 350
2 Manas Bhardwaj 319
3 OriginalGriff 243
4 Sergey Alexandrovich Kryukov 205
0 Sergey Alexandrovich Kryukov 9,530
1 OriginalGriff 5,716
2 Peter Leow 4,320
3 Maciej Los 3,540
4 Abhinav S 3,373


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid