Solved

Populating data grid asp.net

Posted on 2012-03-21
2
321 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
Comment Utility
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
Comment Utility
I didn't resolve my issue.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

16 Experts available now in Live!

Get 1:1 Help Now