Hi,
Here 'm providing clear code for it check once.
In design page you'll have following code
<asp:datalist id="DataList1" runat="server" widht="70%">
<HeaderTemplate >
<table width="100%" align="center" border="1">
<tr>
<td colspan="2">fgdfgdfg</td>
<td colspan="2">dfgdfgdfg</td>
<td>dfgdfg</td>
</tr>
<tr>
<td>gfdg</td>
<td>gdfgdf</td>
<td>fgfdg</td>
<td>fdg</td>
<td>dgdfgdf</td>
</tr>
</HeaderTemplate>
<itemtemplate>
<tr>
<td>dfgfdg</td>
<td>gfd</td>
<td>gdfg</td>
<td>fdgfd</td>
<td>gdfgfdd</td>
</tr>
</itemtemplate>
<footertemplate>
</footertemplate></table>
In code behind file the following code'll be paste in page load method
List<string> str = new List<string>();
str.Add("sdgfsdfsd");
str.Add("sdgfsdfsd");
str.Add("sdgfsdfsd");
str.Add("sdgfsdfsd");
str.Add("sdgfsdfsd");
str.Add("sdgfsdfsd");
str.Add("sdgfsdfsd");
str.Add("sdgfsdfsd");
str.Add("sdgfsdfsd");
DataList1.DataSource = str;
DataList1.DataBind();
</string></string>
Now see My code is right or wrong
All the best