Click here to Skip to main content
16,018,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts,
Can anybody please let me know how I can use C# to read a specific column based on its
header?
As I do not know how to insert value in an Excel, so I simply "drawn" a sheet here to help you understand.
ID    Name   Gender
01    X      M
02    Y      F
03    Z      M

Note: The "space" around represents the empty cells around.

Now let's say I want to locate ID column and then update its data below. Any good idea will be greeted.
Hope it is not a bad question. :)
Regards
Pandvi
Posted
Updated 31-May-12 0:11am
v3

Hi,
Here go through the the link-
A Very Easy to Use Excel XML Import-Export Library[^]
 
Share this answer
 
Please refer similar discussion here[^]
Also have a look on DataColumn.ColumnName Property[^]
 
Share this answer
 
Comments
Pandvi 1-Jun-12 0:59am    
:) Many Thanks
Prasad_Kulkarni 1-Jun-12 1:14am    
You're welcome!
BTW do you know GIT[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900