Click here to Skip to main content
16,017,297 members
Home / Discussions / C#
   

C#

 
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 
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 
Hi S.Dhanasekaran
thank you for your reply, I really appreciate.


Why do I have to create a DataColumn by myself? When I use SQLDataAdapter Fill() method, it does the same for me.

After using the Fill method of the SQLDataAdapter I do sth like this:

dataS = new DataSet();
...
dataS.Tables.Add(dataTable);
dataS.Tables["MyTable"].Columns["MyID"].AutoIncrement = true;
dataS.Tables["MyTable"].Columns["MyID"].AutoIncrementStep = -1;
dataS.Tables["MyTable"].Columns["MyID"].AutoIncrementSeed = 0;
dataS.Tables["MyTable"].Columns["MyID"].AutoIncrement = true;
dataS.Tables["MyTable"].Columns["MyID"].ReadOnly = true;

When i check the debugger, the AutoIncrementSeed is "-1" and the AutoIncrementStep is also "-1".
But for example, when I have now 4 rows with MyIDs = {1, 2, 3, 4} and I add manually a new row to the DataSet, the value of MyID should be -1, but it is 3.
And I have completely no clue why is that Confused | :confused:
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] PinPopular
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 
GeneralRe: Inter relate Pin
OriginalGriff25-Sep-09 0:31
mveOriginalGriff25-Sep-09 0:31 
GeneralRe: Inter relate Pin
Christian Graus25-Sep-09 0:47
protectorChristian Graus25-Sep-09 0:47 

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.