now i want to work on Button event which is inside of gridview i am using this .
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);
}It working fine but the problem is; it is working on both button click event. plus as i try to write intextbox (which inside of gridview) it also get fire.
Muhammad Faizan KhanPosted Oct 27, 2013, 2:57 PM
Jaganathan BantheswaranPosted Oct 27, 2013, 5:31 AM