Пример #1
0
    //method to select data on edit
    private void BindSelected(int intActionSNo)
    {
        lblMessage.Text       = "";
        txtActionCode.Enabled = false;
        objActionMaster.BindActionOnSNo(intActionSNo, "SELECT_ON_Action_SNo");
        txtActionCode.Text = objActionMaster.ActionCode;
        txtActionDesc.Text = objActionMaster.ActionDesc;

        // Code for selecting Status as in database
        for (intCnt = 0; intCnt < rdoStatus.Items.Count; intCnt++)
        {
            if (rdoStatus.Items[intCnt].Value.ToString().Trim() == objActionMaster.ActiveFlag.ToString().Trim())
            {
                rdoStatus.Items[intCnt].Selected = true;
            }
            else
            {
                rdoStatus.Items[intCnt].Selected = false;
            }
        }
    }