Just moving this to the appropriate list...

On 10/19/06, Dorin Manoli <[EMAIL PROTECTED]> wrote:




Hi! I'm doing now an application and I map my results to the IList. But it
is messy to assign results to DataGrid (.Net v1.1)



Now I'm doing:

…….

for(int i=0; i<companiesList.Count;i++)

{

drRow = dsCompanies.Tables[0].NewRow();

drRow["Col1"] = ((GridCompany)companiesList[i]). Col1;

drRow["Col2"] = ((GridCompany)companiesList[i]). Col2;

drRow["Col3"] = ((GridCompany)companiesList[i]). Col3;

drRow["Col4"] = ((GridCompany)companiesList[i]). Col4;

drRow["Col5"] = ((GridCompany)companiesList[i]). Col5;

dsCompanies.Tables[0].Rows.Add(drRow);

}

….



I limit result to a 100 records per page..

But if I want to display more it slow down performance of application..

 Does anyone know a better method?






Reply via email to