H
Hypo
I want to add some JS attributes on datagrid's button
column. I tried folowing:
for (int i=0; i < DataGrid1.Controls.Count; i++)
if (DataGrid1.Controls is
System.Web.UI.HtmlControls.HtmlInputButton)
((System.Web.UI.HtmlControls.HtmlInputButton)
DataGrid1.Controls).Attributes.Add("onclick", "return
confirm('Are you sure you want to delete this item ?')");
It doesnt work.
Anyone, please.... Thanks!
column. I tried folowing:
for (int i=0; i < DataGrid1.Controls.Count; i++)
if (DataGrid1.Controls is
System.Web.UI.HtmlControls.HtmlInputButton)
((System.Web.UI.HtmlControls.HtmlInputButton)
DataGrid1.Controls).Attributes.Add("onclick", "return
confirm('Are you sure you want to delete this item ?')");
It doesnt work.
Anyone, please.... Thanks!