M
Maziar Aflatoun
I'm have a datagrid with 2 buttons Edit and Delete.
<asp:EditCommandColumn ButtonType="PushButton" EditText="Edit"
CancelText="Cancel" UpdateText="Update"></asp:EditCommandColumn>
<asp:ButtonColumn ButtonType="PushButton" Text="Delete"
CommandName="Delete"></asp:ButtonColumn>
Once you click Edit it changes in Edit and Cancel. I like to apply CSS to
my buttons. I got it to work for Edit and Delete. However, I'm having
problem with Cancel? Any idea?
((WebControl)e.Item.Cells[12].Controls[0]).CssClass = "button1";
((WebControl)e.Item.Cells[13].Controls[0]).CssClass = "button1";
How would I apply this css "button1" to my once Edit clicked state?
Thank you
Maziar A.
<asp:EditCommandColumn ButtonType="PushButton" EditText="Edit"
CancelText="Cancel" UpdateText="Update"></asp:EditCommandColumn>
<asp:ButtonColumn ButtonType="PushButton" Text="Delete"
CommandName="Delete"></asp:ButtonColumn>
Once you click Edit it changes in Edit and Cancel. I like to apply CSS to
my buttons. I got it to work for Edit and Delete. However, I'm having
problem with Cancel? Any idea?
((WebControl)e.Item.Cells[12].Controls[0]).CssClass = "button1";
((WebControl)e.Item.Cells[13].Controls[0]).CssClass = "button1";
How would I apply this css "button1" to my once Edit clicked state?
Thank you
Maziar A.