Button in datagrid footer
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
hi, I have a Button control in datagrid footer. How can i have an event handler for that button. I have Edit buttons also in the datagrid. please help Tirthadip
-
hi, I have a Button control in datagrid footer. How can i have an event handler for that button. I have Edit buttons also in the datagrid. please help Tirthadip
Hi, Check for the CommandName of the button inside ItemCommand like this... public void DataGrid1_ItemCommand(object sender, System.Web.UI.WebControls.DataGridCommandEventArgs e) { if(e.CommandName == "Insert") { do something... } } Thank u.. -- modified at 5:25 Friday 14th April, 2006