I'm baffled and confused. I have several radgrids on my site where I use a linqdatasource declared in aspx and modify the result of it through different grid events. Everything works well there. But now I have to bind the grid from the code-behind, but when a user clicks a button... So I understand that just using radgrid.bind will not work well for sorting/filtering/editing, when I try that the grid loses all the values and I have a blank grid until another postback is caused.
So I read that I must use the onneeddatasource event, but i need the grid to be rebound on button click event, how do i make it work? I suppose i could add some flags when button is clicked and when needdatasource occurs then bind depending on the flag?
Please help.
So I read that I must use the onneeddatasource event, but i need the grid to be rebound on button click event, how do i make it work? I suppose i could add some flags when button is clicked and when needdatasource occurs then bind depending on the flag?
Please help.