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
334
InitializeLayout Doesn't fire
posted

Hi,

I am trying to use InitializeLayout event but it doesn´t  work when the DataSource is not set.

 Is it a bug or the DataSource must be always set?

 Tks,

 Duan Brito

 

Parents
  • 28464
    posted

    Hello,

    Not sure if this is a bug - I think that this might be bt design, since if there is no datasource the InitializeXXX events do not really play role in the grid (like InitializeRow, InitializeDataSource, InitializeLayout).

    Do you need to use the grid in unbound mode? Then you can just custmoze the Layout of the grid immediately prior to populating it with data - in the same event where you are populating the grid with data (I assume, Page_Load). Will this work in your scenario?

Reply Children