hi,
i am trying to save a dataset into an excel sheet.
i have a windows form project with sql server backend. i have a datagridview control on the form which is populated from the sql server database. Now, i need to pull the grid view contents into an excel sheet and then save the excel sheet onto the disk.
plz help me in this, thanks in advance.
User Profile
Collapse
-
indona started a topic How to import a dataset in datagridview of a form into an excel sheet and save it?in C SharpHow to import a dataset in datagridview of a form into an excel sheet and save it?
-
How to add a gridview control to a form which opens on button click..
hi....i have a form on which i have a button, on button click another form opens. now i want to add a grid view control to the second form which opens on button click.
the code is like this:
private void button2_Click(o bject sender, EventArgs e)
{
Form form2= new Form();
form2.Show();
}
now i want to add a grid view control to... -
thanks a lot.. it worked.. -
How to introduce an escape character in filepath...???
hi..
i am trying to pass the file path of a text file, which i need to read, to a file object so as to read all lines of the text file. and i am selecting the file through a filedialog and i obtained the filepath and the filename using the FileName and SafefileName properties of the filedialog ...as:
now i am facing problem in introducing the escape character to ignore the backslash punctuation while passing the filename in... -
thanks a lot....the tutorial and the code you provided really helped..n wid that have been able to do my work..
thanks a lot all..Leave a comment:
-
how to insert data from a data table into sqlserver table
hi, i have to enter data from a delimited file into sqlserver database table.
i have been able to delimit the file and read the data into a data table, now i want enter the data table contents to sqlserver. some help in this matter...if possible code for moving data from data table to the database....wou ld be really helpful. thanks in advance. -
okay.... i will try with d index part u just mentioned..
anyway thanks a lot..Leave a comment:
-
thanks a lot for the reply. i have just done the reading of the file with the split function by displaying the lines onto cmd. thanks a lot for the help.
but i am still not sure about the part of reading the data into the database. can you plz help me with some sample code for this.Leave a comment:
-
i am trying to read a 2 way delimited txt file into sqlserver in C# 2008.
i am trying to read a 2 way delimited txt file into sqlserver in VS2008 using C# and SQL server2005. the individual entries of the file are delimited by "~" and the data within the entries are separated using "$". and i need to read the entries as rows in the database and the data within each entry i.e. delimited by $ as columns or fields in the database.
since i am new to .net, i am not able to do the 2 way delimiting...
No activity results to display
Show More
Leave a comment: