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

Unbound operation

1 Answer 91 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Adrian Loughman
Top achievements
Rank 1
Adrian Loughman asked on 02 Oct 2007, 02:28 PM
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

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 03 Oct 2007, 01:27 PM
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
Tags
GridView
Asked by
Adrian Loughman
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or