Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Populating data grid asp.net

Posted on 2012-03-21
2
Medium Priority
?
332 Views
Last Modified: 2012-03-24
Hi,

I'm populating my data grid in aspx page by binding List<Exams> from a web service response. But I wanted the users to able to submit selected rows for storing in the table and others may have already been submitted. How do I conditionally populate the grid so users can only submit a row that haven't been already submitted? I mean, populate all of the rows on the grid regardless and differentiate the already submitted one from the others?  

Can somebody advice me please.


Thanks!
0
Comment
Question by:ube100
2 Comments
 
LVL 18

Accepted Solution

by:
UnifiedIS earned 900 total points
ID: 37747206
When the user clicks submit, you should do a lookup in your database to see if the record already exists.

You could put a column in the grid that includes a boolean that tells whether or not the record exists already and just skip the insert if it exists
0
 

Author Closing Comment

by:ube100
ID: 37761370
I didn't resolve my issue.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question