内部にコマンド ボタンがある DevExpress グリッドビューを使用しています。代わりに画像を使用したい。どうすればそれが可能になりますか?
今まで私はこれをたくさん試しました:
GridViewCommandColumn commancol = new GridViewCommandColumn();
commancol.ButtonType = ButtonType.Image;
GridViewCommandColumnButton moveUpBtn;
moveUpBtn.Image.Url = "~/App_Themes/Images/GridControl/grid-delete.png";
commancol.Add(moveUpBtn);
しかし、それはエラーを出しています。
aspxページの代わりに.csページから下の方法ボタンを追加したい。だから私はコードビハインドから上記の方法を試しました。
<dx:GridViewCommandColumn ButtonType="Image">
<HeaderTemplate>
</HeaderTemplate>
<DeleteButton Visible="true" Text="" Image-Url="grid-delete.png"
Image-ToolTip="Delete Record">
</DeleteButton>
</dx:GridViewCommandColumn>
ありがとう