You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Larry Meadors <lm...@apache.org> on 2006/10/19 13:50:55 UTC

Re: iBATIS , results in DataGrid

Just moving this to the appropriate list...

On 10/19/06, Dorin Manoli <Do...@dataireland.ie> 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?
>
>
>
>
>
>