protected void DataListMyOrder_RowDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { string strOrderId = DataListMyOrder.DataKeys[e.Item.ItemIndex].ToString(); if (strOrderId != "") { DataList DataListSubOrder = (DataList)e.Item.FindControl("DataListSubOrder"); if (DataListSubOrder != null) { tblSubOrder objSubOrder = new tblSubOrder(); DataListSubOrder.DataSource = objSubOrder.GetCustomerSubOrder(Session[appFunctions.Session.ClientUserID.ToString()].ToString(), strOrderId); DataListSubOrder.DataBind(); objSubOrder = null; } } } }