Get Column Header in GridViewRow in asp.net

Posted by Suryakavitha on Stack Overflow See other posts from Stack Overflow or by Suryakavitha
Published on 2010-04-30T06:21:36Z Indexed on 2010/04/30 6:27 UTC
Read the original article Hit count: 593

Filed under:
|

Hi, I am using a website and i have a gridview in that website.... I want to delete a row in that gridview by using that selected row column values and Column headers... i got the column values by using GridViewRow but i cant get that column value's Corresponding Column header.... how shall i get that Column header by using GridViewRow....

Please anyOne Tell me the solution of this....

Thanks in Advance!

And My code is:

           int Row = Convert.ToInt16(e.RowIndex);
           GridViewRow Collection = GrdViewDetails.Rows[Row];
           for (int i = 0; i < Collection.Cells.Count;i++)
           {
           strColumnValue = Collection.Cells[i].Text;
           //strColumnName=?
           }

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#