This question is locked. New answers and comments are not allowed.
Hi Everybody,
I wonder how i can implement the following concept.
I want to use a grid to display listing of data, in the present case, vendors.
To edit those records, i want to pass the grid DataBoundItem as datasource to another Form.
Like this the data would be edited directly into the grid via the DataBoundItem.
The folloing code reprensent the binding to the editor from the listing form.
The Following code represent the assignation into the editor
In fact the binding work perfectly, but when i try to modify any field into the editor Open Access throw an exception
What am i missing?
I wonder how i can implement the following concept.
I want to use a grid to display listing of data, in the present case, vendors.
To edit those records, i want to pass the grid DataBoundItem as datasource to another Form.
Like this the data would be edited directly into the grid via the DataBoundItem.
The folloing code reprensent the binding to the editor from the listing form.
FrmVendeurEditeur frmEditeur = new FrmVendeurEditeur(); |
frmEditeur.DataSource = (Vendeur) this.radGridView1.CurrentRow.DataBoundItem ; |
frmEditeur.ShowDialog(); |
The Following code represent the assignation into the editor
public Vendeur DataSource |
{ |
get { return (Vendeur) this.vendeurBindingSource.Current; } |
set { this.vendeurBindingSource.DataSource = value; } |
} |
In fact the binding work perfectly, but when i try to modify any field into the editor Open Access throw an exception
A first chance exception of type 'Telerik.OpenAccess.Exceptions.InvalidOperationException' occurred in Telerik.OpenAccess.dll |
What am i missing?