private void LoadCommandData() { if (txtID.Text != string.Empty) { CommandInfo curCommand = CommandController.GetCommandByLang(ConvertUtility.ToInt32(txtID.Text)); if (curCommand != null) { txtID.Text = curCommand.CommandID.ToString(); txtParams.Text = curCommand.CommandParams; //txtName.Text = curCommand.CommandName; txtUrl.Text = curCommand.CommandUrl; MiscUtility.SelectItemFromList(dropParent, curCommand.CommandParentID.ToString()); MiscUtility.SelectItemFromList(dropCommandKeys, curCommand.CommandKey); MiscUtility.SelectItemFromList(dropIndex, curCommand.CommandOrder.ToString()); chkEnable.Checked = curCommand.CommandEnable; chkVisble.Checked = curCommand.CommandVisible; chkIsSuperUser.Checked = curCommand.IsSuperUser; DataTable dtCommandByLang = CommandController.GetCommandByCmdId(ConvertUtility.ToInt32(txtID.Text)); dgrNameFollowLang.DataSource = builddata(dtCommandByLang); dgrNameFollowLang.DataBind(); } } }