Tuesday, 1 November 2016

Filling Grid from text fields

int _dgrow = dgvSOUT.Rows.Count;

                    dgvSOUT.Rows.Add();
                    dgvSOUT.Rows[_dgrow].Cells[0].Value = dgvSOUT.Rows.Count;
                    dgvSOUT.Rows[_dgrow].Cells[1].Value = cmblot.Text;
                    dgvSOUT.Rows[_dgrow].Cells[2].Value = txtSName.Text;
                    dgvSOUT.Rows[_dgrow].Cells[3].Value = txtbrand.Text;

No comments:

Post a Comment