Amit Kumar Singh

Amit Kumar Singh

  • 404
  • 4k
  • 202.6k

How to iterate to get Gridview datafield name

Oct 20 2016 3:43 AM
for Example
 
string Header=string.empty; 
foreach(DataColumn col in gridview .Columns)
{
  Header += Header + "," +grvTransactionLog.Columns[j].headertxt;
 
 
Instead of Header Text, I want Column name 

Answers (3)