Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

How to: Specify Flow or Table Format in DataList Web Server Controls

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

To specify flow or table format programmatically

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

    DataList1.RepeatLayout = RepeatLayout.Flow
    

    DataList1.RepeatLayout = RepeatLayout.Flow;
    

See Also

Community Additions

ADD
Show:
© 2015 Microsoft