Solved

Populating data grid asp.net

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 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