now i want to work on Button event which is inside of gridview i am using this .
Code
if (e.RowIndex >= 0 && ((DataGridView)sender).Columns[e.ColumnIndex].GetType() == typeof(DataGridViewButtonColumn))
{
DataGridViewRow row = (DataGridViewRow)dataGridView1.Rows[0].Clone();
dataGridView1.Rows.Add(row);
MessageBox.Show(e.ColumnIndex.ToString()+' '+e.RowIndex);
}
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 27, 2013, 1:31 AM EDT
Muhammad Faizan Khan4 reputationPosted Oct 27, 2013, 10:57 AM EDT