I have used the following code to import excel file into my data table in c#
OleDbConnection con=new OleDbConnection(strcon);
Con.open ();
OledbCommand oledbcommand=new oleDbCmmand("select * from [sheat1$",con);
OleDbDataReader dr= oledbCommand. ExecuteReader();
//loading in datatable
Dt.load (dr);
Please help me in telling how can I find the last used row and last column in my excel or datatable in c# .
Please help!!!!