.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

Validate the Grade in gridview in asp.net using C#

Posted By: narasiman     Posted Date: May 26, 2014    Points:5   Category :.NET Framework
Gridview as follows

Studename Grade

select Raj Pass

select Ram Pass

select Suresh Fail

select Sam Pass

in the above gridview i want the gridview in sequence.

if the pass grade is there in gridview in betwee fail grade is there in gridview i want to show the message Fail grade not to be selected.

Narasiman P.

Author: Ashutosh Jha             
Posted Date: May 27, 2014     Points: 20   

Sorry Didn't get you. Could you be please more clear. Mean while if you want to display repetitive data like the details of students, you may use repeater control.

Ashutosh Jha

Author: Pawan Awasthi             
Posted Date: May 31, 2014     Points: 20   

Hai Narsiman,
You can have the grade as the Combo-box or drop-down list inside the GridView.
And then you can have the validation on the selection change event of the Drop-down list to display the message based on the condition you have.
Hope it will be helpful to you.

Pawan Awasthi
(Whats App)+91 8123489140
(cell No.) +6 0143651476

Skype: Pawansoftit

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend