如何在最后一个Gridview中添加Devexpress GridView命令列

时间:2013-10-08 07:56:34

标签: c# asp.net devexpress

将数据加载到Dev Gridview后,我添加了Delete Button

public void loadgrid()
{
         ....
         gv.DataBind();
         GridViewCommandColumn d = new GridViewCommandColumn();
         d.DeleteButton.Text = Delete;
        d.DeleteButton.Visible = true;
        d.Caption = " ";
        gv.Columns.Add(d);
}

但是Column of Delete Button不在最后一个gridview中(它位于last数据列的左侧)。

我真的不知道为什么,我只是想当我添加时,command column会自动添加到最后。我错了???

帮助!

1 个答案:

答案 0 :(得分:1)

只需将可见索引属性设置为最高金额。

Source

相关问题