troubleshooting Question

DataGridView with unbound field

Avatar of kpkirishy
kpkirishy asked on
.NET ProgrammingVisual Basic.NET
2 Comments2 Solutions725 ViewsLast Modified:
I have a DataGridView on a form.  I would like this DataGridView to be populated with 4 Fields.
1. Posted
2. Invoice #
3. Invoice Date
4. Total

The last three fields invoice #, Invoice Date and Total are all stored in the invoices Table but my first field which I added is not stored anywhere.  Posted is a check box field in the datagridview.

I also have a submit button.  I would like to be able to check the posted field in the datagridview and when I click on the submit button copy the rows where posted = true to another table.  How can I accomplish this?

I have the datagridview all created with the posted field but that is as far as i got.

Should I create a datatable with matching schema of the datagridview and then somehow populate that? or should I bind the datagridview to my invoices table?  if i bind my datagridview to my invoices table then how do i detect the posted field?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros