AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageGrid..::..OnLoad Method

Re-applies the current DataKeyNames to MasterTableView.DataKeyNames at OnLoad. This is the closing of a timing gap: the same assignment runs in InitializeControl()()()() (during OnInit, picks up markup-set values) and in grdListItems_PreRender(Object, EventArgs) (catches anything set after Load). The OnInit pass alone misses code-behind values written by the host in its own OnInit body, Page_Load, or grid-property setter calls in load-time code — those run AFTER the child grid's OnInit because child OnInit cascades before parent OnInit. Setting at OnLoad here, AFTER LoadViewState and AFTER the host's own OnLoad / Page_Load has cascaded down, makes [MasterTableView.DataKeyNames] reflect the configured value before ItemCommand and other postback events fire — so event args land with the right DataField entries for the host's resolve-row-from-keys logic.

Namespace:  AdvantageCMS.Web.UI.Admin
Assembly:  AdvantageCMS.Web.UI (in AdvantageCMS.Web.UI.dll)

Syntax


protected void OnLoad(
	EventArgs e
)

Parameters

e
Type: EventArgs
Event arguments forwarded to RadGrid.