> > protected void gvLots_RowDataBound(object sender, GridViewRowEventArgs e) > { > mmGridView gv = (mmGridView)sender; > if (e.Row.RowType == DataControlRowType.DataRow) > { > int count = (int)(LotLineItems.EntityList[e.Row.RowIndex].LCount == null ? 0 : LotLineItems.EntityList[e.Row.RowIndex].LCount); >I recommend adding a line of code (before the line that blows up) that retrieves the business object's underlying DataTable and set a breakpoint that allows you to examine its contents.