Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在最后一个GridView中添加Devexpress GridView命令列_C#_Asp.net_Devexpress - Fatal编程技术网

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

C# 如何在最后一个GridView中添加Devexpress GridView命令列,c#,asp.net,devexpress,C#,Asp.net,Devexpress,将数据加载到Dev Gridview后,我添加了一个Delete按钮: public void loadgrid() { .... gv.DataBind(); GridViewCommandColumn d = new GridViewCommandColumn(); d.DeleteButton.Text = Delete; d.DeleteButton.Visible = true; d

将数据加载到
Dev Gridview
后,我添加了一个
Delete按钮

public void loadgrid()
{
         ....
         gv.DataBind();
         GridViewCommandColumn d = new GridViewCommandColumn();
         d.DeleteButton.Text = Delete;
        d.DeleteButton.Visible = true;
        d.Caption = " ";
        gv.Columns.Add(d);
}
但是删除按钮的
不在gridview的最后一列(它在
最后一列
数据列的左侧)

我真的不知道为什么,我只是觉得当我添加时,
命令列
是在最后一行自动添加的。我错了吗


救命啊

只需将VisibleIndex属性设置为highes amount


我想你是在谈论最后一篇专栏文章吧?还是最后一行?@Marguth网格视图右侧的最后一列