//public void DataBind() //{ // //DataTable dt = GetReleadedCredit(); // //gdvReleasedCredit.DataSource = dt; // gdvReleasedCredit.DataBind(); //} private DataTable GetReleadedCredit() { DataTable dt = CreateDataTable(); if (Investment == null) { return(dt); } IList <MFTransaction> trans = Investment.GetReleasedCreditTransactionsOrderedByInitialInvestmentDate(iSabayaContext); for (int i = 0; i < trans.Count; i++) { DataRow dr = dt.NewRow(); dr[COLUMN_INIT_DATE] = trans[i].InitialInvestmentDate; dr[COLUMN_REMAINING_UNITS] = trans[i].RemainingUnits; dr[COLUMN_TRADEDATE] = trans[i].TradeDate; dt.Rows.Add(dr); } return(dt); }