Click here to Skip to main content
16,016,527 members
Home / Discussions / C#
   

C#

 
AnswerRe: Printing multiple font sizes on the same page... Pin
jameschristianii26-Sep-09 5:30
jameschristianii26-Sep-09 5:30 
Questionsingle User single login Pin
Shalini_U25-Sep-09 2:37
Shalini_U25-Sep-09 2:37 
AnswerRe: single User single login Pin
musefan25-Sep-09 2:47
musefan25-Sep-09 2:47 
GeneralRe: single User single login Pin
Shalini_U25-Sep-09 3:16
Shalini_U25-Sep-09 3:16 
GeneralRe: single User single login Pin
Dave Kreskowiak25-Sep-09 4:20
mveDave Kreskowiak25-Sep-09 4:20 
GeneralRe: single User single login Pin
musefan25-Sep-09 4:28
musefan25-Sep-09 4:28 
QuestionUpload data to Amibroker? Pin
$uresh $hanmugam25-Sep-09 2:32
$uresh $hanmugam25-Sep-09 2:32 
QuestionDataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 0:13
Doktor25-Sep-09 0:13 
Hello Ladies and Gentleman,

I have a problem with the DataTableColumn.AutoIncrementSeed value.
I am loading a set of Tables from my SQL Server DB to a DataSet by using SqlDataAdapter Fill method (I am using the MissingSchemaAction.AddWithKey property).

So I have a master detail scenario in my DataSet with 3 different tables, PrimaryKeys (all with autoincrement = true) and ForeignKeys.

The Problem is, when I insert new rows into the DataTables I want them to have ID's starting from -1 with an AutoIncrementStep = -1. The AutoIncrementStep is working fine.
Nevertheless I can not change the AutoIncrementSeed Confused | :confused: Even if I set its value to -1 (I checked in the debugger, the value is -1), after adding a new row, the seed starts at the last ID's value read from the DataBase while filling the DataTables. Am I missing something, or is this just impossible to change?

I would be really grateful for help.

Greets,
Arek
AnswerRe: DataTableColumn.AutoIncrementSeed value Pin
S.Dhanasekaran25-Sep-09 1:04
S.Dhanasekaran25-Sep-09 1:04 
GeneralRe: DataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 1:15
Doktor25-Sep-09 1:15 
AnswerRe: DataTableColumn.AutoIncrementSeed value Pin
Dave Kreskowiak25-Sep-09 3:59
mveDave Kreskowiak25-Sep-09 3:59 
GeneralRe: DataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 4:20
Doktor25-Sep-09 4:20 
QuestionDifference between Button and Command button in .net Pin
r aa j24-Sep-09 23:20
r aa j24-Sep-09 23:20 
AnswerRe: Difference between Button and Command button in .net Pin
monstale24-Sep-09 23:44
monstale24-Sep-09 23:44 
Question[Message Deleted] Pin
bounik24-Sep-09 22:39
bounik24-Sep-09 22:39 
AnswerRe: How to put a picture or image to my exe and exe's shortcut? Pin
Christian Graus24-Sep-09 22:44
protectorChristian Graus24-Sep-09 22:44 
AnswerRe: How to put a picture or image to my exe and exe's shortcut? Pin
Abhijit Jana24-Sep-09 22:53
professionalAbhijit Jana24-Sep-09 22:53 
AnswerRe: [Message Deleted] Pin
stancrm24-Sep-09 22:54
stancrm24-Sep-09 22:54 
QuestionApplying CSS to Winform Pin
dayakar_dn24-Sep-09 20:53
dayakar_dn24-Sep-09 20:53 
AnswerRe: Applying CSS to Winform Pin
Calla24-Sep-09 21:02
Calla24-Sep-09 21:02 
AnswerRe: Applying CSS to Winform Pin
Dave Kreskowiak25-Sep-09 3:55
mveDave Kreskowiak25-Sep-09 3:55 
QuestionInter relate Pin
alrsds24-Sep-09 20:09
alrsds24-Sep-09 20:09 
AnswerRe: Inter relate Pin
Christian Graus24-Sep-09 20:12
protectorChristian Graus24-Sep-09 20:12 
GeneralRe: Inter relate Pin
alrsds24-Sep-09 21:03
alrsds24-Sep-09 21:03 
GeneralRe: Inter relate Pin
Christian Graus24-Sep-09 21:50
protectorChristian Graus24-Sep-09 21:50 

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.