开发者

Getting Data from excel and inserted in to a gridview in asp.net

开发者 https://www.devze.com 2022-12-19 00:38 出处:网络
in my application i want to get the data of a excel which is in a folder in solution explorer. i want to get the data and insert into a gridview. expecailly i want a开发者_JAVA百科 particular colunm i

in my application i want to get the data of a excel which is in a folder in solution explorer. i want to get the data and insert into a gridview. expecailly i want a开发者_JAVA百科 particular colunm in that excel sheet that is i want to show in a gridview for example i set a outlook contact in a excel sheet in that sheet i want only a emailaddress column in a grid view how can i write. thank you


You can use ADO.net to access cells in an excel file, similar to a DB query. This is a bit lighter than trying to use Excel automation objects.

http://support.microsoft.com/kb/316934

You can then use this as a source for your gridview.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号