views:

102

answers:

2

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="Modifica"
                                UpdateImageUrl="images/apply.gif" CancelImageUrl="images/undo.gif" />
A: 

When you say Title do you mean HeaderText???

<asp:CommandField ShowEditButton="True" HeaderText="Testing" />
Guilherme Ferreira
sorry i want the tooltip on the button
Luca Romagnoli
A: 

If You want Tooltip my suggestion is to convert CommandField to TemplateField.

In Template field you have more options available.

Guilherme Ferreira