Esempio n. 1
0
        private void FxData()
        {
            ObjDt = null;

            GrdData.DataSource = null;

            GrdData.Enabled = false;

            CmdEdit.Enabled  = false;
            CmdReset.Enabled = false;

            ObjDt = ClsSqlAdministrator.Fx_sel_tblUser(false);

            if (ObjDt != null)
            {
                if (ObjDt.Rows.Count > 0)
                {
                    GrdData.DataSource = ObjDt.DefaultView;

                    GrdData.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

                    GrdData.Columns[0].DefaultCellStyle.WrapMode = DataGridViewTriState.True;

                    GrdData.Columns[4].Visible = false;

                    CmdEdit.Enabled  = true;
                    CmdReset.Enabled = true;

                    GrdData.Focus();
                }
            }
        }