BasicDataGrid Class |
Namespace: CMS.Controls
public class BasicDataGrid : UIDataGrid, IRelatedData
The BasicDataGrid type exposes the following members.
Name | Description | |
---|---|---|
BasicDataGrid |
Constructor.
|
Name | Description | |
---|---|---|
Control_PreRender |
Control prerender code.
| |
DataBind |
Binds data to the grid and displays the sorting symbols.
(Overrides BaseDataListDataBind.) | |
GetPagerMode |
Returns the pager position based on the given string.
| |
OnInit |
Initializes the control.
(Overrides UIDataGridOnInit(EventArgs).) | |
OnLoad |
OnLoad event handler. It automatically binds data unless DataBindByDefault is false.
(Overrides BaseDataListOnLoad(EventArgs).) | |
OnPageIndexChanged |
OnPageIndexChanged event handler. It ensures displaying of the given page.
(Overrides DataGridOnPageIndexChanged(DataGridPageChangedEventArgs).) | |
OnPreRender |
PreRender event handler
(Inherited from UIDataGrid.) | |
OnSortCommand |
OnSortCommand event handler. It sorts data by selected column.
(Overrides DataGridOnSortCommand(DataGridSortCommandEventArgs).) | |
RaiseOnBeforeInit |
Raises the OnBeforeInit event.
| |
Render |
Render event handler, to maintain the proper control rendering.
(Overrides BaseDataListRender(HtmlTextWriter).) |
Name | Description | |
---|---|---|
AddCssClass |
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
CallHandled |
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page.
Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetCssClasses |
Returns all CSS classes of control.
(Defined by ControlsExtensions.) | |
GetRenderedHTML |
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
HasCssClass |
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
RemoveCssClass |
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
SetCssClasses |
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
mOnBeforeInitFired |
True if the on before init was fired.
| |
mRelatedData |
Custom data connected to the object.
| |
mRelatedDataLoaded |
Related data is loaded.
|
Name | Description | |
---|---|---|
DataBindByDefault |
Indicates whether data binding should be performed by default.
| |
DataSource |
Gets or sets the object from which data-bound control retrieves its list of data item.
(Inherited from UIDataGrid.) | |
HideControlForZeroRows |
Hides the control when no data is loaded. Default value is False.
| |
ProcessSorting |
Indicates if sorting should be processed in DataView instead of sorting on the SQL level.
| |
RelatedData |
Custom data connected to the object, if not set, returns the Related data of the nearest IDataControl.
| |
SetFirstPageAfterSortChange |
Indicates if page index is set to the first page after sort change.
| |
ShortID |
Short ID of the control.
(Inherited from UIDataGrid.) | |
SortAscending |
Direction of sorting. Default value is True.
| |
SortField |
Gets or sets the sort field. It can be used for setting the default sort field.
| |
ZeroRowsText |
Text to be shown when control is hidden by HideControlForZeroRows.
|
Name | Description | |
---|---|---|
OnBeforeInit |
On before init handler.
|