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 3: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
0 /\jmot 230
1 Zoltán Zörgő 210
2 CHill60 145
3 Peter Leow 145
4 Sergey Alexandrovich Kryukov 125
0 Sergey Alexandrovich Kryukov 9,353
1 OriginalGriff 6,881
2 Peter Leow 4,577
3 Zoltán Zörgő 4,129
4 Richard MacCutchan 2,882


Advertise | Privacy | Mobile
Web03 | 2.8.150129.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100