The main SQL SELECT statement for this grid and form. For stored procedures, just type in the Stored Procedure name.
AxpDataGrid has 4 SQL properties: SQL, FormSQL, EditSQL and DeleteSQL.
The SQL property must always be set, the rest are optional, unless data editing is enabled.
The SQL property can contain any valid SQL SELECT statement, including joins.
Avoid using ORDER BY as the grid has functionality for ordering the dataset.
Examples:
AxpDataGrid1.SQL = "select * from Products"
AxpDataGrid1.SQL = "select ProductId, ProductName from Products"
AxpDataGrid1.SQL = "spname"
AxpDataGrid1.StoredProcCommand.Parameters.Add("@paramname", "paramvalue")
AxpDataGrid Class | Axezz.WebControls Namespace