Am using this Method
foreach(gridviewrow row in grd.rows)
{
string id=row.cells[4].text;
}
But its not Good Coding Practice
i want to get the cell value by the column name
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Amit GuptaRank #190 · 12.8K reputationPosted Feb 13, 2017, 10:10 PM EST
Amit GuptaRank #190 · 12.8K reputationPosted Feb 13, 2017, 10:36 PM EST