Name

BaseDataList

Synopsis

This abstract class provides basic functionality for the DataList and DataGrid web controls. These controls include data binding (through the DataBind() method, properties like DataSource), and simple formatting through various table-specific properties, including CellPadding (the space between content in a cell and the cell borders), CellSpacing (the space between cells), and HorizontalAlign (the position of the table relative to the page or adjacent content).

Public MustInherit Class BaseDataList : Inherits WebControl
' Public Constructors
   Public Sub New() 
' Public Instance Properties
   Overridable Public Property CellPadding As Integer  
   Overridable Public Property CellSpacing As Integer  
   Overrides Public ReadOnly Property Controls As ControlCollection  
   Overridable Public Property DataKeyField As String  
   Public ReadOnly Property DataKeys As DataKeyCollection  
   Public Property DataMember As String  
   Overridable Public Property DataSource As Object  
   Overridable Public Property GridLines As GridLines  
   Overridable Public Property HorizontalAlign As HorizontalAlign  
' Protected Instance Properties
   Protected Property DataKeysArray As ArrayList  
' Public Shared Methods
   Public Shared Function IsBindableType(
        ByVal type As Type) As Boolean  
' Public Instance Methods
   Overrides Public Sub DataBind() 
' Protected Instance Methods
   Overrides Protected Sub AddParsedSubObject(
        ByVal obj As Object) 
   Overrides Protected Sub CreateChildControls() 
   MustInherit Protected Sub CreateControlHierarchy ...

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.