Esempio n. 1
0
        protected void GridDept_RowCommand(object sender, GridCommandEventArgs e)
        {
            int columnIndex = e.ColumnIndex;

            if (e.CommandName == "Store")
            {
                columnIndex = columnIndex - 1;
            }

            FineUIPro.CheckBoxField checkField1 = (FineUIPro.CheckBoxField)GridDept.FindColumn(columnIndex);
            FineUIPro.CheckBoxField checkField2 = (FineUIPro.CheckBoxField)GridDept.FindColumn(columnIndex + 1);
            string IsCFG = checkField1.GetCheckedState(e.RowIndex) ? "1" : "0";
            string SPLB  = checkField2.GetCheckedState(e.RowIndex) ? "1" : "0";

            GridDept.Rows[e.RowIndex].Values[4] = IsCFG + "/" + SPLB;
        }
Esempio n. 2
0
 protected void GridGoods_Sort(object sender, GridSortEventArgs e)
 {
     if (e.SortField == "FLAG")
     {
         for (int rowIndex = 0; rowIndex < GridDept.Rows.Count; rowIndex++)
         {
             FineUIPro.CheckBoxField cbxEnable = GridDept.FindColumn("cbxEnable") as FineUIPro.CheckBoxField;
             cbxEnable.SetCheckedState(rowIndex, FLAG);
             FineUIPro.CheckBoxField checkField1 = (FineUIPro.CheckBoxField)GridDept.FindColumn("cbxEnable");
             FineUIPro.CheckBoxField checkField2 = (FineUIPro.CheckBoxField)GridDept.FindColumn("cbxStore");
             string IsCFG = checkField1.GetCheckedState(rowIndex) ? "1" : "0";
             string SPLB  = checkField2.GetCheckedState(rowIndex) ? "1" : "0";
             GridDept.Rows[rowIndex].Values[4] = IsCFG + "/" + SPLB;
         }
         FLAG = !FLAG;
     }
 }