I'm trying to use this link
I have on aspx page a nested ASP.Net GridView.
Error
Server Error in '/' Application.
A column named ' ' already belongs to this DataTable.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.DuplicateNameException: A column named ' ' already belongs to this DataTable.
Source Error:
Line 345: foreach (TableCell cell in gv1.HeaderRow.Cells)
Line 346: {
Line 347: dt.Columns.Add(cell.Text);
Line 348: }
Line 349: foreach (GridViewRow row in gv1.Rows)
Can you help me?
Thanks