3
Answers

How to iterate to get Gridview datafield name

Amit Singh

Amit Singh

8y
228
1
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)