Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > connect datagridview with datarow
 

connect datagridview with datarow

Hi

How to connect datagridview with datarow. I have a set of rows after selecting from a datatable.

Those rows i need to display in datagridview. Right now i'm using

liike this

foreach (DataRow dr in drs)

dtTemp.ImportRow(dr);

Adding each row to temp table and connecting that to datagridview. Is there any alternative. Beacuse i might have more than 10000 records in datarow.

thanks

venp---

venp  Monday, July 09, 2007 12:41 PM

Hi,

I think you can try dataview,you can use DataView.RowFilter Property to get or set the expression used to filter which rows are viewed in the DataView. please check following articles

DataView.RowFilter Property

DataView.RowFilter Property (System.Data)

With Regards

Gavin Jin - MSFT  Tuesday, July 10, 2007 4:37 AM

Hi,

I think you can try dataview,you can use DataView.RowFilter Property to get or set the expression used to filter which rows are viewed in the DataView. please check following articles

DataView.RowFilter Property

DataView.RowFilter Property (System.Data)

With Regards

Gavin Jin - MSFT  Tuesday, July 10, 2007 4:37 AM

You can use google to search for other answers

Custom Search

More Threads

• BindingNavigator
• Treeview in DataGrid
• Filtering DataGridview
• How to embed child datagrid into its parent in windows forms
• Align data in drop down list
• Trying to link a Button to new Windows Form
• Datagridview sorting... Object must be of type Int32 exception
• regarding querying datagrid
• Databind to object with null field
• Problems with Enterprise Library in a User Control or Class