المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Exporting Datagridview Headers to excel



C# Programming
04-20-2010, 11:40 AM
Hi Develepers

I have created a C# windows application that is able to export a Dataset that i can view on a datagridview to excel using excel Application in visual studio.

I have done this using Microsoft Interop Reference.

However i am unable to export the datagridview headers to the excel worksheet so that the users are able to see what the data is.

int i = 0;
int j = 0;

for (i = 0; i <span class="code-keyword">