Unbound operation

2 posts, 0 answers
  1. Adrian Loughman
    Adrian Loughman avatar
    18 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?

    Thanks

    Adrian
  2. Jack
    Admin
    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); 


    Regards,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top