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
545
What event is fired when grid datasource is set to nothing?
posted

I want to know what event is fired when grid datasource is set to nothing?

InitializeLayout event is fired when I set the grid datasource to something but it doesnt get fired when datasource is set to nothing.

Is there an event that gets fired when ever the datasource changes regardless of what the datasource is?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    Events are typically fired in response to user action. The event lets you, the developer, know that the user did something.

    But the user cannot set the DataSource on the grid. If the DataSource of the gird is set, it's because you set it in code. And in such a case, you really don't need an event to tell you that you did so - you already know.

    There is no event specifically for when the DataSource changes, because such an event is unnecessary.

    The only event that might fire is the PropertyChanged event of the grid.

Children
No Data