By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

Updating Database from combobox in datagrid

P: n/a
Hi,

I've been searching this one for two days so thought I give this a
shot again. I have two datasets Dataset1 and Dataset2

Dataset1 populates a datagrid and dataset2 populates a combobox within
the datagrid. When I try using SqlCommandBuilder it doesn't work
since I am using two datasets. So am I looking for a way to update
the table for dataset1 using a field from the combobox.

Can I somehow specify each table and row to update based on the
dataset I need.

OR is there a better way?
TIA,

Red

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
RedWebGeek,

In this situation as you describe you are mostly using in the combobox a
dataset that is not needed to update (would be very strange because it
serves as a choosebox for the datagridcolumn).

Because when it is right is the column to be updated binded to the value of
that combobox. And therefore you needs only to update the dataset1 (assuming
that is the datagrid1).

You can look at this sample I once made with as basic the combobox class
that is on syncfusion (There are some optimizing changes in it).

http://www.google.com/gr************...TNGP11.phx.gbl

I hope this helps?

Cor
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.