More in this section

Forums / Developing with Sitefinity / How to use DataGrid control.

How to use DataGrid control.

2 posts, 0 answered
  1. Jeremy
    Jeremy avatar
    1 posts
    10 Mar 2008
    12 Mar 2008
    Link to this post
    I am having difficulty getting the DataGrid control to display any data.  I have a table in my database called "Record".  I've set the datamember field to "Record" and the key field to "RecordID".  There are over 100 records in my table.  It displays nothing when I preview it and when I am in live.  I set the DataSource to "Sitefinity" and left the DataSourceID field blank.  I'm not sure what the correct settings should be, but there is little or no documentation available for the DataGrid control - or at least I am not having any luck finding it.  Any help is much appreciated.
  2. Sonya
    Sonya avatar
    231 posts
    24 Sep 2012
    13 Mar 2008
    Link to this post
    Hello Jeremy,

    You need to create a DataSource by adding a DataSource control to the page. Then, copy that data source's ID and paste it in the DataSourceID field of the GridView control. You could find more information in the answer of the other ticket you submitted.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered