Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Can we Bind a Grid to a new datasource inside a RowEvent?
posted

Hello All,

I started working with WindGrid for 2 weeks now and was wondering if we can assign a WinGrid to a new Datasource inside a BeforeRowExpanded event? It does not work for me when I tried this.

I have a Wingrid for which a row event should display new data on the grid and for this, I set the datasource property to a new dataset inside the BeforeRowExpanded event.

Please help.

Thank You!

Stacy.

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Stacy,

    What exactly doesn't work? Are you getting an error?

    I must admit, setting the DataSource of the grid to a new DataSource inside the BeforeRowExpanded event doesn't make a whole lot of sense to me. If the user clicks on an expansion indicator, he's probably not expecting all of the grid data to disappear and be replaced by a whole new set of data. I assume you are showing a MessageBox or some kind of prompt dialog, but even so, I can't see why you would want to do that.

Reply Children