Exemple #1
0
        void Bind()
        {
            List <PokeInfo> list = new List <PokeInfo>();

            list = ScheduleClass.GetAllSchdule();
            this.orderdata.DataSource          = list;
            this.orderdata.AutoGenerateColumns = false;

            //string columnwidths = pub.IniReadValue(this.Name, this.orderdata.Name);
            //if (columnwidths != "")
            //{
            //    string[] columns = columnwidths.Split(',');
            //    int j = 0;
            //    for (int i = 0; i < columns.Length; i++)
            //    {
            //        if (orderdata.Columns[i].Visible == true)
            //        {
            //            orderdata.Columns[j].Width = Convert.ToInt32(columns[i]);
            //            j = j + 1;
            //        }
            //    }
            //}
            orderdata.ClearSelection();
        }