Click here to Skip to main content
15,888,195 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i have gridview control and i have edit and delete buttons as childcontrols nd in footer template i have add button.If i perform Edit Operation Add button should invisible.can u please help
Posted

1 solution

C#
private void dataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
{
    btnadd.Enabled = false;
}
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
    btnadd.Enabled = true;
}
 
Share this answer
 
Comments
nayeem010 8-Aug-11 8:46am    
It doesnt worked praveen..
Nayeem86 8-Aug-11 12:30pm    
It is asp

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900