Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > import selected row from datagridview to excel
 

import selected row from datagridview to excel

Hi all,

I have datagridview with one of the column having serial no.

I want to import the data from datagridview to excel based on the Serial no. Say for example from s.no 1 to 20 and 50 to 60.

I use dotnet framework 2.0 (Vb.net).

There are lot of resuable code to import the complete data to excel but not my need.

Any help/sample resuable code will be really appreciated.

Thanks in advance,
Prem
aeroprem007  Sunday, October 19, 2008 4:48 PM

Hi!

Simply read the selected line and write it to the Excel file. To see how to write to excel, see this article: http://support.microsoft.com/kb/302084

Regards,

Lucian Baciu  Monday, October 20, 2008 8:45 AM

Hi!

Simply read the selected line and write it to the Excel file. To see how to write to excel, see this article: http://support.microsoft.com/kb/302084

Regards,

Lucian Baciu  Monday, October 20, 2008 8:45 AM

You can use google to search for other answers

Custom Search

More Threads

• DataGridview Binding: Conditionally adding an unbound column
• Databinding to a DateTimePicker control
• Working with treeviews, typed dataset and bindingsource controls
• The value of a click cell with ultragrid
• Insert into statement
• How to: Concerning Datagrid
• How do I catch 'System.Data.NoNullAllowedException' exception?
• Summary Rows in the DataGrid
• Problems with DataAdapter.FillSchema
• Adding a new Row to the DataGridView programmatically (DataGridView.AllowUserToAddRow = false) and then Cancel adding by press ESC