Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Populating data grid asp.net

Posted on 2012-03-21
2
Medium Priority
?
331 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

688 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