Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Grid Data View and unbound data
 

Grid Data View and unbound data

The current project I am working on involves creating and editing a large 2 dimensional Array of doubles. I have been able to display the array using a Grid Data View object, but I am puzzled as to how to return the Grid Data View data back to the array after it has been edited, and how to querry a single cell of the grid dataand return the double contained in the cell.

Or am I going about this the wrong way, and I should not be using Grid Data View objects to edit an array?

Thanks,

C. Alan

C. Alan  Sunday, October 29, 2006 8:49 PM

this.Validate();

this.customersBindingSource.EndEdit();
this.customersTableAdapter.Update(this.northwindDataSet.Customers);
or something like this:

cm =(CurrencyManager)this.BindingContext[northwindDataSet,"Customers"];

cm.EndCurrentEdit();

Wang Chi  Monday, October 30, 2006 1:41 AM

this.Validate();

this.customersBindingSource.EndEdit();
this.customersTableAdapter.Update(this.northwindDataSet.Customers);
or something like this:

cm =(CurrencyManager)this.BindingContext[northwindDataSet,"Customers"];

cm.EndCurrentEdit();

Wang Chi  Monday, October 30, 2006 1:41 AM

You can use google to search for other answers

Custom Search

More Threads

• DataGridView automatically adding columns I don't want !!?!
• retrieving data from a data grid field
• Need Help(Deleting Data From A DataGrid)
• How to bypass an editcheck leaving a control
• multi column dropdownlist/combolist in VB 2005
• Only 1 BindingNavigator visible at runtime
• DataGridView - selected row in new form
• Mouse clicking not fired OnKeyDown even
• Populating a combobox
• "Index was out of range." error. Gridview.