System.Web.UI.WebControls.GridView.LoadControlState C# (CSharp) Method

LoadControlState() protected method

protected LoadControlState ( object ob ) : void
ob object
return void
		protected internal override void LoadControlState (object ob)
		{
			if (ob == null) return;
			object[] state = (object[]) ob;
			base.LoadControlState (state[0]);
			pageIndex = (int) state[1];
			selectedIndex = (int) state[2];
			editIndex = (int) state[3];
			sortExpression = (string) state[4];
			sortDirection = (SortDirection) state[5];
			DataKeyNames = (string []) state [6];
			if (state [7] != null)
				LoadDataKeyArrayState ((object []) state [7]);
			if (state [8] != null)
				((IStateManager) OldEditValues).LoadViewState (state [8]);
		}