Click here to Skip to main content
15,793,845 members
Home / Discussions / C#
   

C#

 
AnswerRe: single User single login Pin
musefan25-Sep-09 3:47
musefan25-Sep-09 3:47 
GeneralRe: single User single login Pin
Shalini_U25-Sep-09 4:16
Shalini_U25-Sep-09 4:16 
GeneralRe: single User single login Pin
Dave Kreskowiak25-Sep-09 5:20
mveDave Kreskowiak25-Sep-09 5:20 
GeneralRe: single User single login Pin
musefan25-Sep-09 5:28
musefan25-Sep-09 5:28 
QuestionUpload data to Amibroker? Pin
$uresh $hanmugam25-Sep-09 3:32
$uresh $hanmugam25-Sep-09 3:32 
QuestionDataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 1:13
Doktor25-Sep-09 1:13 
AnswerRe: DataTableColumn.AutoIncrementSeed value Pin
S.Dhanasekaran25-Sep-09 2:04
S.Dhanasekaran25-Sep-09 2:04 
GeneralRe: DataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 2:15
Doktor25-Sep-09 2: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 4:59
mveDave Kreskowiak25-Sep-09 4:59 
GeneralRe: DataTableColumn.AutoIncrementSeed value Pin
Doktor25-Sep-09 5:20
Doktor25-Sep-09 5:20 
QuestionDifference between Button and Command button in .net Pin
r aa j25-Sep-09 0:20
r aa j25-Sep-09 0:20 
AnswerRe: Difference between Button and Command button in .net Pin
monstale25-Sep-09 0:44
monstale25-Sep-09 0:44 
Question[Message Deleted] Pin
bounik24-Sep-09 23:39
bounik24-Sep-09 23:39 
AnswerRe: How to put a picture or image to my exe and exe's shortcut? Pin
Christian Graus24-Sep-09 23:44
protectorChristian Graus24-Sep-09 23:44 
AnswerRe: How to put a picture or image to my exe and exe's shortcut? Pin
Abhijit Jana24-Sep-09 23:53
professionalAbhijit Jana24-Sep-09 23:53 
AnswerRe: [Message Deleted] Pin
stancrm24-Sep-09 23:54
stancrm24-Sep-09 23:54 
QuestionApplying CSS to Winform Pin
dayakar_dn24-Sep-09 21:53
dayakar_dn24-Sep-09 21:53 
AnswerRe: Applying CSS to Winform Pin
Calla24-Sep-09 22:02
Calla24-Sep-09 22:02 
AnswerRe: Applying CSS to Winform Pin
Dave Kreskowiak25-Sep-09 4:55
mveDave Kreskowiak25-Sep-09 4:55 
QuestionInter relate Pin
alrsds24-Sep-09 21:09
alrsds24-Sep-09 21:09 
AnswerRe: Inter relate Pin
Christian Graus24-Sep-09 21:12
protectorChristian Graus24-Sep-09 21:12 
GeneralRe: Inter relate Pin
alrsds24-Sep-09 22:03
alrsds24-Sep-09 22:03 
GeneralRe: Inter relate Pin
Christian Graus24-Sep-09 22:50
protectorChristian Graus24-Sep-09 22:50 
GeneralRe: Inter relate Pin
OriginalGriff25-Sep-09 1:31
mvaOriginalGriff25-Sep-09 1:31 
GeneralRe: Inter relate Pin
Christian Graus25-Sep-09 1:47
protectorChristian Graus25-Sep-09 1: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.