Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can Convert DataRowView To DataRow in C#

Tags:

c#

I want to use Drag Drop But i don't know How to drag information from a DataGridView control to DataGridView or ListBox ?

i got a link http://www.codeproject.com/KB/cpp/DataGridView_Drag-n-Drop.aspx

like image 310
Sarvesh Avatar asked Jul 05 '10 13:07

Sarvesh


People also ask

What is the difference between DataRow and DataRowView?

The datarow is an object in a datatable. A DataView (usable with the name DefaultView) is a seperated table in the DataTable where the sort and rowselections are properties from. That (DataView) Defaultview contains datarowview objects. Be aware it is all about references, there is not much memory spoiled.

How to use DataRowView in c#?

The DataRowView objects expose values as object arrays that are indexed by either the name or the ordinal reference of the column in the underlying table. You can access the DataRow that is exposed by the DataRowView by using the Row property of the DataRowView.


1 Answers

DataRowView.Row should contain the DataRow displayed in the view.

like image 106
munissor Avatar answered Oct 02 '22 21:10

munissor