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 Dorin Manoli <Do...@dataireland.ie> on 2006/06/30 11:04:09 UTC
Ilist and DataGrid
Hi. Does anyone use iBatis in .Net Windows applications?
I putted the IList in DataGrid and it display data improper.
It sorts the columns as not in select statement
Ex. I have select id, name, lastName from people
In DataGrid results are displayed , lastName, id, name
Does anyone got such situation?
Re: Ilist and DataGrid
Posted by Uwe Lesta <le...@sbs-softwaresysteme.de>.
Dorin Manoli wrote:
> Ok:) then it make sense.
>
> The parameters in mapped class are exactly in the same order as in SQL
> statement.
> Strange. How Ibatis map table columns to resultmap?
Hmm, I'll hope someone else can answer this question.
--
Kind regards
Uwe
Lesta at SBS-Softwaresysteme.de
RE: Ilist and DataGrid
Posted by Dorin Manoli <Do...@dataireland.ie>.
Ok:) then it make sense.
The parameters in mapped class are exactly in the same order as in SQL
statement.
Strange. How Ibatis map table columns to resultmap?
-----Original Message-----
From: Uwe Lesta [mailto:lesta@sbs-softwaresysteme.de]
Sent: Friday, June 30, 2006 11:27 AM
To: user-cs@ibatis.apache.org
Subject: Re: Ilist and DataGrid
Dorin Manoli wrote:
> There is no Parameter class , it is a simple select. Without any
parameter.
sorry, i mean the class associated to the resultMap.
<snip>
--
Kind regards
Uwe
Lesta at SBS-Softwaresysteme.de
Re: Ilist and DataGrid
Posted by Uwe Lesta <le...@sbs-softwaresysteme.de>.
Dorin Manoli wrote:
> There is no Parameter class , it is a simple select. Without any parameter.
sorry, i mean the class associated to the resultMap.
<snip>
--
Kind regards
Uwe
Lesta at SBS-Softwaresysteme.de
Re: Ilist and DataGrid
Posted by Uwe Lesta <le...@sbs-softwaresysteme.de>.
Dorin Manoli wrote:
> There is no Parameter class , it is a simple select. Without any parameter.
sorry, i mean the class associated to the resultMap.
<snip>
--
Kind regards
Uwe
Lesta at SBS-Softwaresysteme.de
RE: Ilist and DataGrid
Posted by Dorin Manoli <Do...@dataireland.ie>.
There is no Parameter class , it is a simple select. Without any parameter.
-----Original Message-----
From: Uwe Lesta [mailto:lesta@sbs-softwaresysteme.de]
Sent: Friday, June 30, 2006 10:14 AM
To: user-cs@ibatis.apache.org
Subject: Re: Ilist and DataGrid
Dorin Manoli wrote:
> Hi. Does anyone use iBatis in .Net Windows applications?
>
> I putted the šIList in DataGrid and it display data improper.
>
>
>
> It sorts the columns as not in select statement
>
>
>
> Ex. I have šselect id, name, lastName from people
>
> šIn DataGrid results are displayed , lastName, id, name
>
>
>
> Does anyone got such situation?
In which order are the properties in your Parameter class ??
A common advice : make knowledge explicit.
so make boundColumns or template columns in your datagrid
--
Kind regards
Uwe
Lesta at SBS-Softwaresysteme.de
Re: Ilist and DataGrid
Posted by Uwe Lesta <le...@sbs-softwaresysteme.de>.
Dorin Manoli wrote:
> Hi. Does anyone use iBatis in .Net Windows applications?
>
> I putted the šIList in DataGrid and it display data improper.
>
>
>
> It sorts the columns as not in select statement
>
>
>
> Ex. I have šselect id, name, lastName from people
>
> šIn DataGrid results are displayed , lastName, id, name
>
>
>
> Does anyone got such situation?
In which order are the properties in your Parameter class ??
A common advice : make knowledge explicit.
so make boundColumns or template columns in your datagrid
--
Kind regards
Uwe
Lesta at SBS-Softwaresysteme.de