Hi,
I have one excel spreadsheet with 10 columns.
The users will select which columns they want to read.
Then I want to display those records in the DataGrid.
1)How do I call columns without using the actual header name??
You know know I can call the worksheet like [Sheet1$] in my SQL statemetn like this, "select * from [Sheet1$]"
How do I call columns?? Say I want to select columns 2,3,7 and 8. "Select 2,3...From [Sheet1$]"
2)How can I skip first two rows? Third row has the header information??
When I do "select * from [Sheet1$]", I get F2, F4 and some text which is on the fist two rows as the header in DataGrid.
I am using the DataSet and link it to DataTable.
So I need to skip first two rows and use the third row as the header for the DataGrid??
What can you help??
Thanks much.
I have one excel spreadsheet with 10 columns.
The users will select which columns they want to read.
Then I want to display those records in the DataGrid.
1)How do I call columns without using the actual header name??
You know know I can call the worksheet like [Sheet1$] in my SQL statemetn like this, "select * from [Sheet1$]"
How do I call columns?? Say I want to select columns 2,3,7 and 8. "Select 2,3...From [Sheet1$]"
2)How can I skip first two rows? Third row has the header information??
When I do "select * from [Sheet1$]", I get F2, F4 and some text which is on the fist two rows as the header in DataGrid.
I am using the DataSet and link it to DataTable.
So I need to skip first two rows and use the third row as the header for the DataGrid??
What can you help??
Thanks much.