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

Suthish NairPosted Mar 10, 2011, 1:32 PM
Shivaraj PoojaryPosted Mar 10, 2011, 6:40 AM
Please help me how to get button name...thanks
Shivaraj PoojaryPosted Mar 9, 2011, 9:15 AM
Soft CornerPosted Mar 9, 2011, 8:32 AM
Try this
DataGridViewButtonColumn dgBtnCol = new DataGridViewButtonColumn();
dgBtnCol.Name = "Name";
dgBtnCol.HeaderText = "NAME";
Shivaraj PoojaryPosted Mar 9, 2011, 8:04 AM
Amit ChoudharyPosted Mar 9, 2011, 7:38 AM
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.