title: Datalist items display when based on number of items
body: <p>I am using DataList control in ASP.net application. I have set</p>
  
  <pre><code>DataList1.RepeatColumns = 3;
  DataList1.RepeatDirection = RepeatDirection.Horizontal;
  </code></pre>
  
  <p>properties of DataList. When item count is more than 3 it shows up properly. However if it is less than 3 it distorts and occupies whole space. 
  e.g. if there is only 1 item, it takes complete width and distorts UI.
  if $$$ is one item, for 3 it shows like,<br/>
  $$$|$$$|$$$<br/>
  for one item it shows like <br/>
  $$$$$$$$$$$</p>
  
  <p>and UI disturbs completely.</p>
  
  <p>Is there any way to format display in proper manner?</p>