Click here to Skip to main content
15,893,564 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: Retrieving Images in DataList Pin
Pankaj Garg17-Jan-08 2:49
Pankaj Garg17-Jan-08 2:49 
GeneralRe: Retrieving Images in DataList Pin
Aigreen17-Jan-08 2:56
Aigreen17-Jan-08 2:56 
GeneralRe: Retrieving Images in DataList Pin
Pankaj Garg17-Jan-08 2:59
Pankaj Garg17-Jan-08 2:59 
GeneralRe: Retrieving Images in DataList Pin
Aigreen17-Jan-08 3:07
Aigreen17-Jan-08 3:07 
GeneralRe: Retrieving Images in DataList Pin
Pankaj Garg17-Jan-08 3:10
Pankaj Garg17-Jan-08 3:10 
Questionsql server 2000 dsn Pin
Pankaj Garg17-Jan-08 2:01
Pankaj Garg17-Jan-08 2:01 
Questioncrystal report formula field Pin
Pankaj Garg17-Jan-08 1:56
Pankaj Garg17-Jan-08 1:56 
QuestionAutoincrement column Pin
mpavas17-Jan-08 1:54
mpavas17-Jan-08 1:54 
Hello,

I have datatable and it is populated with some values.
Is it possible to add a column in an exiting datatable now with a auto increment values?

I am trying like this but it does'nt wotk

dslistItems1.Tables[0].Columns.Add("ID", Type.GetType("System.Int32"));
DataColumn[] pk = new DataColumn[1];
pk[0] = dslistItems1.Tables[0].Columns["ID"];
//dslistItems1.Tables[0].PrimaryKey = pk;
dslistItems1.Tables[0].Columns["ID"].AutoIncrement = true;
dslistItems1.Tables[0].Columns["ID"].AutoIncrementSeed = 1;
dslistItems1.Tables[0].Columns["ID"].ReadOnly = true;


This code doesn't populate the values in the column

Regards,
Pavas

GeneralRe: Autoincrement column Pin
Not Active17-Jan-08 2:16
mentorNot Active17-Jan-08 2:16 
GeneralRe: Autoincrement column Pin
mpavas17-Jan-08 2:28
mpavas17-Jan-08 2:28 
GeneralRe: Autoincrement column Pin
Not Active17-Jan-08 2:50
mentorNot Active17-Jan-08 2:50 
Questionerror in my vb.net application Pin
Ravi_2117-Jan-08 1:18
Ravi_2117-Jan-08 1:18 
GeneralRe: error in my vb.net application Pin
dilipv17-Jan-08 21:39
dilipv17-Jan-08 21:39 
GeneralEnumurate Datagrid Rows [modified] Pin
danasegaranea17-Jan-08 0:57
danasegaranea17-Jan-08 0:57 
GeneralRe: Enumurate Datagrid Rows Pin
Paddy Boyd17-Jan-08 1:37
Paddy Boyd17-Jan-08 1:37 
GeneralUnauthorisation error... Pin
koolprasad200316-Jan-08 22:50
professionalkoolprasad200316-Jan-08 22:50 
Questionhow to create print command in list view control Pin
Ravi_2116-Jan-08 22:40
Ravi_2116-Jan-08 22:40 
Questionhow to create administrator username and password? Pin
Basheer16-Jan-08 22:18
Basheer16-Jan-08 22:18 
GeneralRe: how to create administrator username and password? Pin
Colin Angus Mackay17-Jan-08 0:33
Colin Angus Mackay17-Jan-08 0:33 
Questionusing datagrid Pin
Harikrk16-Jan-08 21:32
Harikrk16-Jan-08 21:32 
GeneralRe: using datagrid Pin
_AK_17-Jan-08 19:00
_AK_17-Jan-08 19:00 
QuestionHow to create a table for Placeholder controls Pin
Albert8316-Jan-08 21:26
Albert8316-Jan-08 21:26 
Questiondate query Pin
Pankaj Garg16-Jan-08 20:49
Pankaj Garg16-Jan-08 20:49 
GeneralRe: date query Pin
Colin Angus Mackay17-Jan-08 0:16
Colin Angus Mackay17-Jan-08 0:16 
NewsRe: date query Pin
Pankaj Garg17-Jan-08 2:04
Pankaj Garg17-Jan-08 2:04 

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.