PC Review


Reply
Thread Tools Rate Thread

Database Problem

 
 
=?Utf-8?B?Q2hyaXM=?=
Guest
Posts: n/a
 
      12th Feb 2007
I have a table bound to a datagridview on main form. A second form updates
one of the look up tables that includes look-up values. One of the
datagridview columns is a combobox on main form that gets its values form
this look up table.

What I add new loopup values from the second form and save that data by
updagint the tableadapter, then go back to the main form, the dropdown does
not show the new values. I have to exit and restart the program to see them.
The code below is what I execute when new comands are added to the comands
table.

private void button1_Click(object sender, EventArgs e)
{
// save the changes made to the gridview
this.Validate();
this.commandsBindingSource.EndEdit();
this.commandsTableAdapter.Update(this.fixed1DataSet.Commands);
}

What am I missing?

 
Reply With Quote
 
 
 
 
Chan Ming Man
Guest
Posts: n/a
 
      13th Feb 2007
This sounds like the article that I have written. Check here:
http://chanmingman.spaces.live.com/?...tqs=cat%3d.Net

chanmm

"Chris" <(E-Mail Removed)> wrote in message
news:C2BC15A2-D68D-4A00-BDEB-(E-Mail Removed)...
>I have a table bound to a datagridview on main form. A second form updates
> one of the look up tables that includes look-up values. One of the
> datagridview columns is a combobox on main form that gets its values form
> this look up table.
>
> What I add new loopup values from the second form and save that data by
> updagint the tableadapter, then go back to the main form, the dropdown
> does
> not show the new values. I have to exit and restart the program to see
> them.
> The code below is what I execute when new comands are added to the comands
> table.
>
> private void button1_Click(object sender, EventArgs e)
> {
> // save the changes made to the gridview
> this.Validate();
> this.commandsBindingSource.EndEdit();
> this.commandsTableAdapter.Update(this.fixed1DataSet.Commands);
> }
>
> What am I missing?
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Sharing database for linked table from other database . =?Utf-8?B?UHJpeWFua2E=?= Microsoft Access Security 1 25th Apr 2005 12:36 PM
OleDBConnection problem if database sesison is killed or database is restarted Jack Wright Microsoft ADO .NET 5 9th Feb 2004 08:04 AM
A problem in storing HTML in database or a problem in finding the right reporting solution? Merek Microsoft ASP .NET 0 3rd Dec 2003 06:07 PM
SQLCE Encrypt Database problem - database creates but doesn't encrypt? Jim Wilson [eMVP] Microsoft Dot NET Compact Framework 2 28th Aug 2003 01:55 AM
Re: .NET Database Problem Jeff Microsoft VB .NET 0 10th Jul 2003 07:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 AM.