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

Manually declare grid rows in aspx page

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brandon Slezak
Top achievements
Rank 2
Brandon Slezak asked on 18 Aug 2009, 04:55 AM
Is there a way to declare rows in a RadGrid without databinding?  I have some static grids and I like the Telerik skin but I don't really feel like putting it all in a database.

Can I just hard code rows in the aspx page somehow?

-Thanks in Advance!

-Brandon

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 18 Aug 2009, 05:38 AM
Hi Brandon,

This is not possible however you can just bind the grid to some simple collection of objects - for example:

RadGrid1.DataSource = new int[]{1,2,3};

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Brandon Slezak
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Share this question
or