开发者

Get Column Header in TableCellCollection in asp.net

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 va开发者_JS百科lues by using TablecellCollection but i cant get that column value's Corresponding Column header.... how shall i get that Column header by using TableCellCollection....

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

Thanks in Advance!

And My code is:

           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=?
           }



 GrdViewDetails.Columns[i].HeaderText
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜