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
I can confirm that this is by design. InitializeLayout only occurs when a layout is created through the grid being databound. The same applies to InitializeRow and row creation.
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?