JavaScript Editor jscript editor     Web designer 



Main Page

The DataList control allows you to display the items in the control in a variety of ways. You can specify that the control renders items in either flow mode (like a Word document) or in table mode (like an HTML table). Flow mode is suitable for simple layouts. Table mode gives you more precise control of the layout than flow mode, and it allows you to use table attributes, such as CellPadding.

To specify flow or table format at design time

  • Set the DataList control's RepeatLayout property to either Flow or Table.

To specify flow or table format programmatically

  • Use the RepeatLayout enumeration, as shown in the following code example.

    Visual BasicВ CopyCode imageCopy Code
    DataList1.RepeatLayout = RepeatLayout.Flow

    C#В CopyCode imageCopy Code
    DataList1.RepeatLayout = RepeatLayout.Flow;

See Also



JavaScript Editor jscript editor     Web designer