TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anjumathi kumar
NA
54
64.4k
how to import data from excel to grid
Aug 11 2011 2:59 AM
Hi
How to import data from Microsoft Excel 2010 to Gridview
am using web application.(visual studio 2010)
String strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=D:\\Book1.xls;" + "Extended Properties=Excel 8.0;HDR=NO;";
DataTable ds = new DataTable();
string strSQL = "SELECT * FROM [Sheet1$]";
OleDbDataAdapter da = new OleDbDataAdapter(strSQL, strConn);
da.Fill(ds);
grvPatient.DataSource = ds;
grvPatient.DataBind();
m trying like this it provide error
Reply
Answers (
4
)
How to have a fixed header for gridview control?
Converting c# desktop application to asp.net web app