2010-01-13 58 views
0

是否可以在命令字段的图像按钮上设置标题属性?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" /> 

回答

0

当你说标题你的意思是HeaderText?

<asp:CommandField ShowEditButton="True" HeaderText="Testing" /> 
+0

对不起,我希望按钮上的工具提示 – 2010-01-14 11:54:18

0

如果您需要Tooltip,我的建议是将CommandField转换为TemplateField。

在模板字段中,您有更多可用选项。