hi...I have the following code to use button in Datagridview..I want to give name to the button..plz help me out regards this...thanks
DataGridViewButtonColumn dgBtnCol = new DataGridViewButtonColumn();
dataGridView1.Columns.Add(dgBtnCol);
Loading


Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 9, 2011, 2:38 AM EST
Try this,
DataGridViewButtonColumn dgBtnCol = new DataGridViewButtonColumn();
dgBtnCol.ID="CustomGridButton";
dataGridView1.Columns.Add(dgBtnCol);
Don't forget to mark as answer if it helps you.
Thanks.
Shivaraj Poojary69 reputationPosted Mar 9, 2011, 3:04 AM EST
Soft CornerRank #1,221 · 1.5K reputationPosted Mar 9, 2011, 3:32 AM EST
Try this
DataGridViewButtonColumn dgBtnCol = new DataGridViewButtonColumn();
dgBtnCol.Name = "Name";
dgBtnCol.HeaderText = "NAME";
Shivaraj Poojary69 reputationPosted Mar 9, 2011, 4:15 AM EST
Shivaraj Poojary69 reputationPosted Mar 10, 2011, 1:40 AM EST
Please help me how to get button name...thanks
Suthish NairRank #92 · 22.8K reputationPosted Mar 10, 2011, 8:32 AM EST