Unbound operation

2 posts, 0 answers
  1. Adrian Loughman
    Adrian Loughman avatar
    17 posts
    Member since:
    Nov 2002

    Posted 02 Oct 2007 Link to this post

    Hi All

    Anyone know how to use the gridview to add data unbound (using rows.add).
    And will it work for adding into a hierarchial grid?


  2. Jack
    Jack avatar
    2335 posts

    Posted 03 Oct 2007 Link to this post

    Hi Adrian,

    Thank you for this question.

    Currently, the RadGridView does not support unbound mode. We will think about implementing this feature in our future releases.

    You can add rows through code using Rows.Add method when the RadGridView is bound to a data source. This method takes an object array as an input parameter whose values will be used to set the values in the row.

    Please consult the following code, illustrating adding two rows to the RadGridView:

    this.radGridView1.Rows.Add(new object[] {1, "John Smith", 45.9, true});  
    this.radGridView1.Rows.Add(2, "Lisa Simpson", 12.9, false); 

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top