// binding grid DataSet ds = new DataSet(); ds = Common.Get_Order_Allocation_Grid(id); dataGridView1.Visible = true; DataGridViewComboBoxColumn c = new DataGridViewComboBoxColumn(); // Binding combobox DataSet ds1 = new DataSet(); { ds1 = Common.GET_ALLOCATION_OPTION(); } { dataGridView1.DataSource = ds.Tables[0]; dataGridView1.ReadOnly = true; for (i = 0; i < ds.Tables[0].Rows.Count; i++) { c.DataSource = ds1.Tables[0]; c.DisplayMember = "VENDOR_ID"; c.ValueMember = "VEN_PARTY_NAME"; dataGridView1.Columns.Add(c); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)