Add column to datagridview on button click
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 attend5days leftRegister
Bhushan BhasmeRank #2,348 · 604 reputationPosted Jun 16, 2015, 7:03 AM EDT
{
if (dataGridView1.Columns.Count != 0)
{
DataGridViewColumn col = new DataGridViewTextBoxColumn();
}
}
Carlos kambuiRank #2,642 · 528 reputationPosted Jun 16, 2015, 6:37 AM EDT