Skip to content

Replies

0
rajathan
rajathan answered on Aug 26, 2008 1:01 PM

Dear Andrej

Thanks a lot for your help, it works now!

Thank you very much!!!

0
rajathan
rajathan answered on Aug 26, 2008 12:32 PM

 Hi Andre

Thranks again for the reply. the code is:

DataSet ds = get data from DB;    // use  _db.LoadDataSet(cmd, theDataSet, tableName) to load dataset;

BindingSource gridSource = new BindingSource(ds, .TableName);

grid.DataSource = gridSource ;

The version version of NetAdvantage is 2007 Vol. 2;

 

 

 

0
rajathan
rajathan answered on Aug 26, 2008 12:08 PM

 Hi,Andrej

thanks for the answer, but I got exception at    DataSet ds2 = (DataSet)datagrid1.datasource;

It said:"Unable to cast object of type 'System.Windows.Forms.BindingSource' to 'System.Data.DataSet'"

 

I have 2 ultragrid, A and B. what I want is: when I double click on one row in A, this row will be removed from A, and also that row will be removed from the dataset which is bound to A; mean while, I want to add this row to B, and that row will also be added to the dataset which is bound to B.

Do you know what I mean?