Ejemplo n.º 1
0
        protected void btnDel_Click(object sender, System.EventArgs e)
        {
            Epoint.MisBizLogic2.Data.MisGuidRow oRow;
            CheckBox chk;
            string RowGuid;
            for (int i = 0; i < Datagrid1.Items.Count; i++)
            {
                chk = (CheckBox)Datagrid1.Items[i].FindControl("chkAdd");
                if (chk.Checked)
                {
                    RowGuid = Convert.ToString(Datagrid1.DataKeys[i]);
                    oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(TableName, RowGuid);
                    oRow["s_del_TrueOrFalse"] = "Del"; //��1������ɾ��
                    oRow.Update();
                }

            }
            this.RefreshGrid();
        }
Ejemplo n.º 2
0
        protected void btnDel_Click(object sender, System.EventArgs e)
        {
            Epoint.MisBizLogic2.Data.MisGuidRow oRow;
            CheckBox chk;
            string   RowGuid;

            for (int i = 0; i < Datagrid1.Items.Count; i++)
            {
                chk = (CheckBox)Datagrid1.Items[i].FindControl("chkAdd");
                if (chk.Checked)
                {
                    RowGuid = Convert.ToString(Datagrid1.DataKeys[i]);
                    oRow    = new Epoint.MisBizLogic2.Data.MisGuidRow(TableName, RowGuid);
                    oRow["s_del_TrueOrFalse"] = "Del"; //“1”代表删除
                    oRow.Update();
                }
            }
            this.RefreshGrid();
        }