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

GridView Code Example Error

1 Answer 22 Views
Documentation
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 12 Oct 2011, 07:04 PM
The code sample for an Unbound grid in the Creating Rows Programmatically section is the same as the code in the Creating An Empty Grid section, as can be seen here.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 14 Oct 2011, 09:44 AM
Hi Don,

Thank you for noticing this. I will take the appropriate actions in order to resolve this in our next upload. If you are interested, the code that is omitted is the following:
this.radGridView1.Columns.Add(new GridViewTextBoxColumn("A"));
this.radGridView1.Columns.Add(new GridViewTextBoxColumn("B"));
GridViewRowInfo rowInfo = this.radGridView1.Rows.AddNew();
rowInfo.Cells[0].Value = "A1";
rowInfo.Cells[1].Value = "B1";
rowInfo = this.radGridView1.Rows.AddNew();
rowInfo.Cells["A"].Value = "A2";
rowInfo.Cells["B"].Value = "B2";

I have updated your Telerik Points for this report.

If you have any other questions or suggestions, do not hesitate to contact us.
 
Greetings,
Stefan
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
Documentation
Asked by
Don
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or