Hello,
I am trying to format my datalist as everything is being displayed in a vertical direction when I need the items to be displayed in the horizontal direction. This is what's happening:
January
Record 1
Record 2
February
Record 3
Record 4
and the output I'm looking for is
January
Record 1 Record 2
February
Record 3 Record 4
Here's the cs:
protected void DlFiles_ItemDB(object sender, System.Web.UI.WebControls.DataListItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.AlternatingItem | e.Item.ItemType == ListItemType.Item)
{
string strval = ((Label)(e.Item.FindControl("lblMP"))).Text;
string month = ViewState["DateAdded"] as string;
;
if (month == strval)
{
((Label)(e.Item.FindCont ...
Go to the complete details ...