This is a migrated thread and some comments may be shown as answers.

Add elements to the GridView

1 Answer 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rodolfo
Top achievements
Rank 1
Rodolfo asked on 24 Dec 2013, 08:49 PM
Hello, I wonder how do I use this code in radGridView. It works perfectly in datagridview standard visual studio.

Code:

int n = dataGridView1.Rows.Add();
                dataGridView1.Rows[n].Cells[0].Value = listProced.
                dataGridView1.Rows[n].Cells[1].Value = listConv;
                dataGridView1.Rows[n].Cells[2].Value = listPro;
                dataGridView1.Rows[n].Cells[3].Value = listProce;

                dataGridView1.FirstDisplayedScrollingRowIndex = n;

                dataGridView1.CurrentCell = dataGridView1.Rows[n].Cells[0];

                dataGridView1.Rows[n].Selected = true;

thank you!

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Dec 2013, 02:19 PM
Hello Rodolfo,

Thank you for writing.

Please consider the following articles where you can find the requested information:
I hope this helps. 

Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Rodolfo
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or