Re: DataTable - order of rows.
From: Miha Markic [MVP C#] (miha)
Date: 12/05/04
- Next message: Andy Fish: "Re: exceptions with nested windows messages."
- Previous message: jason: "Re: Error 1935 install .net v1.1 distribution on 98se"
- In reply to: Dobieslaw Wroblewski: "DataTable - order of rows."
- Next in thread: at: "Re: DataTable - order of rows."
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 5 Dec 2004 10:33:15 +0100
Hi Dobieslaw,
I think that Add will always append the row at the end and using a DataView
without sorting will reflect this.
However, to be on the safe side, you might consider using an AutoIncrement
field which will always be corrrectly incremented.
-- Miha Markic [MVP C#] - RightHand .NET consulting & development SLODUG - Slovene Developer Users Group www.rthand.com "Dobieslaw Wroblewski" <dobieslaw.wroblewski@reverse_the_next.com.cegedim> wrote in message news:cosj9j$34s$1@atlantis.news.tpi.pl... > Hello, > > I am adding rows to the data table without primary key defined using the > DataRowCollection.Add(object[]) method. > > When I am reading the table directly or using its default view or a view > with order set to "", I would like to process the records exactly in the > order in which they were added. > > The question is whether I can trust the actual order of rows or it might > be > implementation-dependent? > > DW. > >
- Next message: Andy Fish: "Re: exceptions with nested windows messages."
- Previous message: jason: "Re: Error 1935 install .net v1.1 distribution on 98se"
- In reply to: Dobieslaw Wroblewski: "DataTable - order of rows."
- Next in thread: at: "Re: DataTable - order of rows."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|