for (int a = 0; a < dataTableCOMPSALES.Rows.Count; a++)
{
DataRow rowCOMPSALES = myDataSetCOMPSALES.Tables["ComparableSale"].Rows[a]; string typeIndicator = rowCOMPSALES["SaleOrListingIndicator"].ToString(); if (typeIndicator == "S"){
string saleListingNumber = "txtSale" + a + "ListingNumber";+saleListingNumber+.Text = rowCOMPSALES[
"_ListingNumber"].ToString();}
else{
string listListingNumber = "txtList" + a + "ListingNumber";}
}

Mike GoldRank #50 · 30.6K reputationPosted May 24, 2007, 2:33 PM EDT
cdog37 reputationPosted May 25, 2007, 6:17 AM EDT
Jan MontanoRank #1,295 · 1.3K reputationPosted May 30, 2007, 1:45 AM EDT