public MainForm() { InitializeComponent(); string cnStr = @"Data Source=(local)\SQLEXPRESS;Initial Catalog=AutoLot;" + "Integrated Security=True;Pooling=False"; // Create our data access object. dal = new InventoryDALDisLayer(cnStr); // Fill up our grid! inventoryGrid.DataSource = dal.GetAllInventory(); }
public MainForm() { InitializeComponent(); string cnStr = @"Data Source=(local)\SQLExpress;Initial Catalog=AutoLot;Integrated Security=True"; dal = new InventoryDALDisLayer(cnStr); inventoryGrid.DataSource = dal.GetAllInventory(); }