AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ToolListBase..::..DefineGridColumns Method

The column definitions

Namespace:  AdvantageCMS.Core.Admin.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public void DefineGridColumns()

Examples


Example of defining columns for an example "Order" object tool

C#
public override void DefineGridColumns()
{
DefineColumn("VehicleID", "VehicleMasterID", eDataType.String, false, false, false, false);
DefineColumn("ID", "OrderID", eDataType.String, true, true, true, true);
DefineColumn("Customer Name", "CustomerName", eDataType.String, true, true, true, false);
DefineColumn("Email", "Email", eDataType.String, true, true, true, false);
DefineColumn("Status", "OrderStatus", eDataType.String, true, true, true, true);
DefineColumn(" ", "WaringStatus", eDataType.String, true, false, false, false);
DefineColumn("Change Date", "LastModifiedDate", eDataType.String, true, true, true, false);
DefineColumn("Payment", "Payment", eDataType.String, true, false, true, false);
DefineColumn("Make", "Make", eDataType.String, true, true, false, false);
DefineColumn("Model", "Model", eDataType.String, true, true, false, false);
DefineColumn("Stock#", "StockNumber", eDataType.String, true, true, true, false);
DefineColumn("Order Date", "OrderDate", eDataType.String, true, false, false, false);
}