Hello everybody,
I am novice programmer in vb.net.I need to export datas from DatagridView to Excel.I could load the data but not columns names.Please help me to load the column name as well along with datas
Hello everybody,
I am novice programmer in vb.net.I need to export datas from DatagridView to Excel.I could load the data but not columns names.Please help me to load the column name as well along with datas
If you copy the contents of the DataGridView into an AdoDb recordset, then you can use this method to accomplish your goal.
http://www.tek-tips.com/faqs.cfm?fid=6739
it would be better you use a Microsoft Report Viewer to display your data instead of a datagridview. this will enable you ssave your data in both excel and pdf formats
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.