How to remove CellSpacing and CellPadding from generated markup for Datalist? RRS feed

  • Question

  • User-851757825 posted

     The mark-up generated by the datalist css adapter is as follow:

    <table cellspacing="0" cellpadding="0" summary="">
     I do not want to set the cellspacing and cellpadding to zero, because I need to change them from css later.
    Is there a way to solve this issue? 
    Friday, June 13, 2008 6:28 AM

All replies

  • User-833084849 posted

    use repeater control rather than datalist 

    Friday, June 13, 2008 6:46 AM
  • User-851757825 posted

     Good Idea, but my data is in tabular format and I don't want to use repeater to generate a table. At least to save some typing. :)

    Friday, June 13, 2008 6:53 AM
  • User1335250097 posted

    Just Change cellspacing property of your DataList to be -1

    Friday, September 21, 2012 9:35 AM