commandfield put title attribute on images button
Is possible to set the title attibute on the image buttons of a commandfield?
<asp:CommandField ShowDeleteButton="True" ButtonType="Image" ShowEditButton="True"
DeleteImageUrl="images/BPAnn.gif" EditImageUrl="images/edit.gif" DeleteText="Elimina" EditText="Modi开发者_C百科fica"
UpdateImageUrl="images/apply.gif" CancelImageUrl="images/undo.gif" />
When you say Title do you mean HeaderText???
<asp:CommandField ShowEditButton="True" HeaderText="Testing" />
If You want Tooltip my suggestion is to convert CommandField to TemplateField.
In Template field you have more options available.
In case someone needs this you can do this for any command. Here it is done for the delete:
<asp:CommandField DeleteText="<i aria-hidden='true' title='Delete Role' class='glyphicon glyphicon-trash'>" ShowDeleteButton="True"/>
精彩评论