C# 在asp.net的TableCellCollection中获取列标题

C# 在asp.net的TableCellCollection中获取列标题,c#,asp.net,C#,Asp.net,我正在使用一个网站,我在该网站上有一个gridview。。。。我想使用选定的行、列值和列标题删除该gridview中的一行。。。我使用TablecellCollection获得了列值,但无法获得该列值对应的列标题。。。。如何使用TableCellCollection获取列标题 请告诉我这个问题的解决方法 提前谢谢 我的代码是: int Row = Convert.ToInt16(e.RowIndex); TableCellCollection coll

我正在使用一个网站,我在该网站上有一个gridview。。。。我想使用选定的行、列值和列标题删除该gridview中的一行。。。我使用TablecellCollection获得了列值,但无法获得该列值对应的列标题。。。。如何使用TableCellCollection获取列标题

请告诉我这个问题的解决方法

提前谢谢

我的代码是:

           int Row = Convert.ToInt16(e.RowIndex);
           TableCellCollection collection = GrdViewDetails.Rows[Row].Cells;

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

 GrdViewDetails.Columns[i].HeaderText