0
 private void btnAddItem_Click(object sender, EventArgs e)
    {
        DataTable Dt = DB.SelectItemDetails(Convert.ToString(txtItemList.Text));

        DataGridViewRow row = new DataGridViewRow();
        row.Cells.Add(new DataGridViewTextBoxCell { Value = Dt.Rows[0]["ItemName"] });
        row.Cells.Add(new DataGridViewTextBoxCell { Value = Dt.Rows[0]["ItemPrice"] });
        int num = Convert.ToInt16(Dt.Rows[0]["Qty"]);
        int[] numArry = new int[num];
        for (int i =1 ; i == num; i++)
        {
            numArry[i] = i;
        }

        row.Cells.Add(new DataGridViewComboBoxCell { Value =  }
        dgvBill.Rows.Add(row);



    }

need to add numArry to DataGridViewComboBoxCell tried so many ways but still couldn't figure it

Malaka
  • 1
  • 3

0 Answers0