In this task,the csv file has retreived and it viewed by using datagrid. but now how we can take a specified header name from the datatable??
santhya123
0
Newbie Poster
Recommended Answers
Jump to PostDo you mean you want to retrieve the name of a column in a DataTable?
If yes, DataTable.Columns[ColumnIndex].ColumnName return the name of the column specified by 'ColumnIndex'.
For example, to retrieve the name of the 4th column from the DataTable object 'dtEmp',
String colName = …
All 3 Replies
Ramesh S
129
Posting Pro
carobee
0
Posting Whiz in Training
sknake
1,622
Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.