Example #1
0
 public void setGridViewDataSource(DataTable _dt)
 {
     lock (m_lock_datasource)
     {
         ObjOrder.makeTableSchema(ref _dt); // set table columns with ObjOrder class
         gridControl.DataSource = _dt;
     }
 }
Example #2
0
        public DataTable getGridViewDataSource()
        {
            lock (m_lock_datasource)
            {
                DataTable dt = (DataTable)gridControl.DataSource;
                if (null == dt)
                {
                    dt = new DataTable();
                    if (null != dt)
                    {
                        ObjOrder.makeTableSchema(ref dt); // set table columns with ObjOrder class
                        gridControl.DataSource = dt;
                    }
                    else
                    {
                        Debug.Assert(false);
                    }
                }

                return(dt);
            }
        }