GridView Code Example Error

2 posts, 1 answers
  1. Don
    Don avatar
    60 posts
    Member since:
    Aug 2010

    Posted 12 Oct 2011 Link to this post

    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.
  2. Answer
    Stefan avatar
    2911 posts

    Posted 14 Oct 2011 Link to this post

    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.
    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.

Back to Top