System.Web.UI.WebControls.DataGrid.AddPropertyToColumns C# (CSharp) Method

AddPropertyToColumns() public method

public AddPropertyToColumns ( ) : void
return void
		void AddPropertyToColumns ()
		{
			BoundColumn b = new BoundColumn ();
			if (IsTrackingViewState) {
				IStateManager m = (IStateManager) b;
				m.TrackViewState ();
			}
			b.Set_Owner (this);
			b.HeaderText = "Item";
			b.SortExpression = "Item";
			b.DataField  = BoundColumn.thisExpr;
			DataSourceColumns.Add (b);
		}

Same methods

DataGrid::AddPropertyToColumns ( PropertyDescriptor prop, bool tothis ) : void