Solved

Populating data grid asp.net

Posted on 2012-03-21
2
323 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 300 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

896 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now