hello
i use radgid for organizing my dvd collection. i order them according genre with some infos bout total dvds of this section.
i can break down the parentitem and will see all the dvds belonging to this genre.
through some circumstances i have to bind the datasource from my c# code. i also have to run it every time i change the page. think that is cuz it's all on one page... anyway... for the first page of the grid it's working properly but as soon as i change to page 2 or even further the childgrid shows an empty entry although there should be several entrys.
my code: (OnPageIndexChanged & OnPageSizeChanged)
void bindDataSource(object sender, EventArgs e)
{
radgridDVD.DataSource = from genres in GenreCollection
select genre;
radgridDVD.MasterTableView.DetailTables[0].DataSource = DVDCollection;
rgResultDepositSearch.DataBind();
}
i ran the application in debug mode and it seams like it goes back to 'select genre' after the childDataSource was bound and the childDataSource gets lost.
and also the pagecount for the detailtable somehow shows the count of the mastertable.
thanks for your help!
beat
i use radgid for organizing my dvd collection. i order them according genre with some infos bout total dvds of this section.
i can break down the parentitem and will see all the dvds belonging to this genre.
through some circumstances i have to bind the datasource from my c# code. i also have to run it every time i change the page. think that is cuz it's all on one page... anyway... for the first page of the grid it's working properly but as soon as i change to page 2 or even further the childgrid shows an empty entry although there should be several entrys.
my code: (OnPageIndexChanged & OnPageSizeChanged)
void bindDataSource(object sender, EventArgs e)
{
radgridDVD.DataSource = from genres in GenreCollection
select genre;
radgridDVD.MasterTableView.DetailTables[0].DataSource = DVDCollection;
rgResultDepositSearch.DataBind();
}
i ran the application in debug mode and it seams like it goes back to 'select genre' after the childDataSource was bound and the childDataSource gets lost.
and also the pagecount for the detailtable somehow shows the count of the mastertable.
thanks for your help!
beat