/// <summary>
 /// Populate the view from the dataset
 /// </summary>
 public void Populate()
 {
     TranslateDGV( );
     if (!string.IsNullOrEmpty(LastColSize))
     {
         string[] e = LastColSize.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
         for (int i = 0; i < e.Length; i++)
         {
             if (i < DGV.Columns.Count)
             {
                 DGV.Columns[i].Width = int.Parse(e[i]);
             }
         }
     }
     DGV.AllowUserToResizeColumns = true;
     ComposeFilter( );
     lblLoadingData.Visible = false;
 }
Beispiel #2
0
        /// <summary>
        /// Populate the view from the dataset
        /// </summary>
        public void Populate( )
        {
//      DGV.SuspendLayout( );

            if (!string.IsNullOrEmpty(LastColSize))
            {
                string[] e = LastColSize.Split(new char [] { ';' }, StringSplitOptions.RemoveEmptyEntries);
                for (int i = 0; i < e.Length; i++)
                {
                    if (i < DGV.Columns.Count)
                    {
                        DGV.Columns[i].Width = int.Parse(e[i]);
                    }
                }
            }
            DGV.AllowUserToResizeColumns = true;
            ComposeFilter( );
            //    DGV.ResumeLayout( );
        }