private void FRM_CUSTOMER_MANEGEMENT_Activated(object sender, EventArgs e)
        {
            grid_Customer.DataSource       = CLASS_CUSTOMER.sp_customer_display();
            grid_Customer.Columns[4].Width = 100;

            foreach (DataGridViewColumn col in grid_Customer.Columns)
            {
                //if( col is DataGridViewIamgeColumn)
                //{
                //   (DataGridViewIamgeColumn)col).IamgeLayout = DataGridViewImageCellLayout.Stretch;
                //}
                //55-16:27
            }
        }
Esempio n. 2
0
 public FRM_SEARCH(string _ch)
 {
     InitializeComponent();
     if (_ch == "supplier")
     {
         DataTable dt = CLASS_SUPPLIER.SP_SUPPLIERSELECT();
         dataGridView1.DataSource = dt;
         this.Text = "بيانات الموردين ";
     }
     else if (_ch == "product")
     {
         this.Text = "بيانات المنتجات";
         dataGridView1.DataSource = CLASS_PRODUCTS.SP_PRODUCTSELECT();
     }
     else if (_ch == "customer")
     {
         this.Text = "بيانات العملاء";
         dataGridView1.DataSource = CLASS_CUSTOMER.sp_customer_display();
     }
 }