Hi Nandaka2,
Oh sorry, now that I know you means column, we can eliminate IbatisNet
or any OR-Mapper as the cause to this issue that you are having. This is
because columns orders are more related to the Presentation Layer, i.e.
DataGridView.
Here are some links that may help you out:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1610325&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=668672&SiteID=1
http://www.wwwcoder.com/tabid/68/type/art/parentid/459/site/6454/default.aspx
I think the first link is similar to what you are experiencing. The 2nd link
tells us that you can still get the issue using datatable. Third link is just
extra knowledge.
My suggestion is that you should always manually define the columns and columns
ordering as suggested in the 1st link.
Regards,
Tom Nguyen
Sr. Developer
[EMAIL PROTECTED]
-----Original Message-----
From: Nandaka2 [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 11:03 PM
To: [email protected]
Subject: Re: using DataGridView
Sorry for long reply.
On Wed, 13 Jun 2007 20:22:39 +0700
"Miika Mäkinen" <[EMAIL PROTECTED]> wrote:
> Hi there. Why would you use an OR mapper like ibatis to
>load datatables?
Because I dont want to use 2 type database connection
type(iBATIS and manually using DataAdapter for
DataGridView if I want to use DataGridView). I'm using the
datatable for datagridview datasource.
On Wed, 13 Jun 2007 09:35:48 -0500
"Nguyen, Tom" <[EMAIL PROTECTED]> wrote:
>First of all,
>
>> jumbled column order (i.e: col3, col2, col5, col1, col4)
>
> I assume you mean row?
no, the column header, say I have column ordered into Id,
Name, Address.
And I have the resultMap exactly in that order, and the
query is Select * from sometable.
If i'm using SelectForList() to fill the DataGridView, it
would be ordered into Address, Id, Name.
thank you
---------------------------------------------------------------------------
Bosan dengan email yang biasa ??
Ayo cobain kirim email diiringi musik dengan bergabung di Music Mail Plasa.com
( http://www.plasa.com/informasi/mm/ ), dijamin kirim email terasa lebih
menyenangkan.
---------------------------------------------------------------------------
************************************************************************************
This e-mail message and any files transmitted herewith, are intended solely for
the
use of the individual(s) addressed and may contain confidential, proprietary or
privileged information. If you are not the addressee indicated in this message
(or responsible for delivery of this message to such person) you may not
review,
use, disclose or distribute this message or any files transmitted herewith. If
you
receive this message in error, please contact the sender by reply e-mail and
delete
this message and all copies of it from your system.
************************************************************************************