Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: Acessing from method in class. Pin
Pete O'Hanlon21-Sep-07 0:23
mvePete O'Hanlon21-Sep-07 0:23 
GeneralRe: Acessing from method in class. Pin
pekhaleyogesh21-Sep-07 0:29
pekhaleyogesh21-Sep-07 0:29 
GeneralRe: Acessing from method in class. Pin
Christian Graus21-Sep-07 0:31
protectorChristian Graus21-Sep-07 0:31 
GeneralRe: Acessing from method in class. Pin
Pete O'Hanlon21-Sep-07 0:32
mvePete O'Hanlon21-Sep-07 0:32 
Questionuse of list control in static method. Pin
pekhaleyogesh21-Sep-07 0:03
pekhaleyogesh21-Sep-07 0:03 
AnswerRe: use of list control in static method. Pin
Christian Graus21-Sep-07 0:32
protectorChristian Graus21-Sep-07 0:32 
AnswerRe: use of list control in static method. Pin
Anthony Mushrow21-Sep-07 1:54
professionalAnthony Mushrow21-Sep-07 1:54 
QuestionHelp autonumber... Pin
KppsK20-Sep-07 23:28
KppsK20-Sep-07 23:28 
Sorting number in access database...

My question is:

In database access I have a table named Persons.
First field in this table,called PersonID, is Number, long int, not
Autonumber. Then I put some data in this table
with C# Windows application, for exapmle:

PersonID: Name
1 Jonh
2 Jack
3 Maria
4 George
5 Alex
6 Peter
7 Mike
8 David


and my application, should delete some
of the Names from database, and the problem is here!

Imagine, I should delete records:2(Jack), 4(George), 6(Peter)
and then my table in database look like this:

PersonID: Name
1 Jonh
3 Maria
5 Alex
7 Mike
8 David

My question is:
Is there a way, PersonID field who is number(long int)
to have value like this(and table):

PersonID: Name
1 Jonh
2 Maria
3 Alex
4 Mike
5 David

So when I delete some records, from table,
I want
the field (number - long int) to sort himself
in order: 1,2,3,4,5....
not: 1,4,5,6,9....

because in my c# windows application I need sorted records
1,2,3,4,5...

thank you c# lover's.



kpp

AnswerRe: Help autonumber... Pin
Colin Angus Mackay20-Sep-07 23:41
Colin Angus Mackay20-Sep-07 23:41 
AnswerRe: Help autonumber... Pin
Anthony Mushrow21-Sep-07 1:43
professionalAnthony Mushrow21-Sep-07 1:43 
GeneralRe: Help autonumber... Pin
Colin Angus Mackay21-Sep-07 1:47
Colin Angus Mackay21-Sep-07 1:47 
Questiondirectshow filters [modified] Pin
Kuldeep Antil20-Sep-07 23:06
Kuldeep Antil20-Sep-07 23:06 
AnswerRe: directshow filters Pin
Sam Xavier21-Sep-07 1:27
Sam Xavier21-Sep-07 1:27 
QuestionEnumerate NT Group membership on remote computer Pin
Harkamal Singh20-Sep-07 22:47
Harkamal Singh20-Sep-07 22:47 
AnswerRe: Enumerate NT Group membership on remote computer Pin
elibriscoe21-Sep-07 12:43
elibriscoe21-Sep-07 12:43 
GeneralRe: Enumerate NT Group membership on remote computer Pin
Harkamal Singh21-Sep-07 20:10
Harkamal Singh21-Sep-07 20:10 
QuestionThick Client Appplication Pin
SakthiSurya20-Sep-07 22:19
SakthiSurya20-Sep-07 22:19 
AnswerRe: Thick Client Appplication Pin
Pete O'Hanlon20-Sep-07 22:25
mvePete O'Hanlon20-Sep-07 22:25 
AnswerRe: Thick Client Appplication Pin
Sathesh Sakthivel20-Sep-07 22:26
Sathesh Sakthivel20-Sep-07 22:26 
GeneralRe: Thick Client Appplication Pin
SakthiSurya20-Sep-07 23:55
SakthiSurya20-Sep-07 23:55 
GeneralRe: Thick Client Appplication Pin
Pete O'Hanlon21-Sep-07 0:00
mvePete O'Hanlon21-Sep-07 0:00 
Questiondelegates Pin
www.suniltvl.in20-Sep-07 22:06
www.suniltvl.in20-Sep-07 22:06 
AnswerRe: delegates Pin
www.suniltvl.in20-Sep-07 22:07
www.suniltvl.in20-Sep-07 22:07 
AnswerRe: delegates Pin
ray_f20-Sep-07 23:24
ray_f20-Sep-07 23:24 
AnswerRe: delegates Pin
Pete O'Hanlon21-Sep-07 0:02
mvePete O'Hanlon21-Sep-07 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.