How to align the column names and labels of a FormView data control? RRS feed

  • Question

  • User-830563764 posted
    In a FormView data control, without using the <Table><TR><TD> tags, how can the
    Column Name and <asp:Label> be aligned by setting the Properties menu options?
    CaptionAlign? CellPadding? Gridlines?
    Thursday, May 26, 2016 7:55 PM


  • User36583972 posted

    Hi wonjartran,

    As far as I know, the table in the formview is for layout purposes. If you don't want the formview to render as an HTML table, use CSS adapters and it will render as divs.

    An adapter can be used to replace this <table> with a few nested <div> tags whose appearance and position is easily styled with CSS.


    Best Regards,

    Yohann Lu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 27, 2016 5:13 AM