2010-01-13 73 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。

在模板字段中,您有更多可用選項。