Devexpress MultiSelect行字段名称。?

时间:2016-12-15 07:49:19

标签: devexpress xtragrid

如何在GridviewButton事件期间确定是否选中了multiselect中的Xtragrid = True模式检查按钮?请参见下面的网格图:

https://docs.python.org/2/library/logging.html#logrecord-attributes

1 个答案:

答案 0 :(得分:0)

解决了 -

gridView1_SelectionChanged

var view = sender as GridView;
            if (view == null) return;
            view.BeginSelection();
              int[] selectedRows = view.GetSelectedRows();
                int[] RowHandle = view.GetSelectedRows();

            try
            {

                for (int i = -1; i < selectedRows.Length; i++)
                {
                    if (selectedRows.Length == 0)
                    {
                       clear();
                    }
                    else
                    {
                        //Clear all value zero 
                foreach (int value in RowHandle)
                  {    deger += Convert.ToDouble(gridView1.GetRowCellValue(value, "FieldName"));    } 

                   }
                }