Reading Values from Table

faucon

New Member
I populate values from my gridview in my table using this Code: \[code\]Table table = new Table(); // get gridlines from gridviewtable.GridLines = GridView1.GridLines;if (GridView1.HeaderRow != null){ table.Rows.Add(GridView1.HeaderRow);}foreach (GridViewRow row in GridView1.Rows){ table.Rows.Add(row);}if (GridView1.FooterRow != null){ table.Rows.Add(GridView1.FooterRow);}\[/code\]What I need is to read every data from the table which contains the values of the gridview into an excel worksheet cell.How can i achieve this...??? PS: This is my worksheet obj in code-behind in c#.\[code\]Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet;\[/code\]Or Is there any other way to add the data from GridView to something else than, using table, which can be easly read.??? Thanks
 
Back
Top