We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Copying rows with DataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

27288 Apr 8,2005 12:39 PM Apr 8,2005 12:59 PM Windows Forms 1
loading
Tags: GridControl
Igor Kashtelyan
Asked On April 8, 2005 12:39 PM

Hi, I have a taks of copying several rows from one databoundgrid to another. Both read from different DBs, so essentially, it all shoul come to a DB manipulation. I am quite new to the Grid and so my question is how do I efficiently map rows from the view back to the DataSet (which is used to populate a Businnes object). Thanks

Administrator [Syncfusion]
Replied On April 8, 2005 12:59 PM

You will need to use the CurrencyManager. Otherwise, things like sorting will break your lookups. int pos = grid.Binder.RowIndexToPosition(rowIndex); CurrencyManager cm = (CurrencyManager)grid.BindingContext[grid.DataSource, grid.DataMember]; DataView dv = (DataView) cm.List; DataRowView drv = (DataRowView) cm.List[pos]; // drv["Qty"] = ????

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;