Exemplo n.º 1
0
        public void BindData()
        {
            string where = GetWhere();
            DataTable dt = userManager.GetAllUserMessage(where);

            UserGridView.DataSource = dt;
            UserGridView.AutoResizeColumns(
                DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader);
            this.UserGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
        }