More in this section

Forums / General Discussions / how to bind radgrid in ragrid

how to bind radgrid in ragrid

2 posts, 0 answered
  1. bharat veer
    bharat veer avatar
    2 posts
    Registered:
    04 Dec 2009
    25 Jul 2011
    Link to this post
    Hi,
    let we have a grid name RadGridCountry. in this radgrid we have a second child grid RadGridState.
    in RadGridCountry countries are bound from country table. so how can i bind the data that when a country record
    is bound in RadGridCountry then by this recordID(CountryID) child grid can be bound with all related states.
    more specifically data should be bound like that.
    is this possible to display the data in below dispalying format.
    CountryID   CountryName
    1                  USA
    StateID         StateName
    1                  California
    2                  washington
    3                   newyork
    CountryID   CountryName
    2                 India
    StateID      StateName
    1                  Delhi
    2                  UP
    3                   MP

    Thanks.


  2. CMSGuru
    CMSGuru avatar
    42 posts
    Registered:
    15 Feb 2011
    26 Jul 2011
    Link to this post
    why not just create your dataset and group your dataset so it displays as you need it? If can program in .NET it should be easy to do.  I wouldn't use 2 grids, just use the one and group your data based off of Country.

    Here is a link that may help you,
    http://www.agrinei.com/gridviewhelper/gridviewhelper_en.htm

    I have code as well from another project that does exactly what your trying to do, I'll post that later on if you want to see how I did it
2 posts, 0 answered