Click here to Skip to main content
15,905,963 members
Home / Discussions / C#
   

C#

 
AnswerRe: monthcalendar Pin
JacquesDP6-Mar-06 18:56
JacquesDP6-Mar-06 18:56 
GeneralRe: monthcalendar Pin
nassimnastaran6-Mar-06 22:29
nassimnastaran6-Mar-06 22:29 
GeneralRe: monthcalendar Pin
Drew McGhie7-Mar-06 9:31
Drew McGhie7-Mar-06 9:31 
QuestionArrayList Problem Pin
AB77716-Mar-06 18:40
AB77716-Mar-06 18:40 
AnswerRe: ArrayList Problem Pin
DigitalKing6-Mar-06 19:03
DigitalKing6-Mar-06 19:03 
GeneralRe: ArrayList Problem Pin
AB77716-Mar-06 19:11
AB77716-Mar-06 19:11 
GeneralRe: ArrayList Problem Pin
DigitalKing6-Mar-06 19:18
DigitalKing6-Mar-06 19:18 
GeneralRe: ArrayList Problem Pin
AB77716-Mar-06 19:28
AB77716-Mar-06 19:28 
QuestionHow to acess a floopy drive in c#? Pin
nitin_ap6-Mar-06 18:38
nitin_ap6-Mar-06 18:38 
AnswerRe: How to acess a floopy drive in c#? Pin
hackerhcm6-Mar-06 18:57
hackerhcm6-Mar-06 18:57 
QuestionRename computer hostname Pin
picasso26-Mar-06 17:28
picasso26-Mar-06 17:28 
AnswerRe: Rename computer hostname Pin
Vasudevan Deepak Kumar6-Mar-06 18:13
Vasudevan Deepak Kumar6-Mar-06 18:13 
GeneralRe: Rename computer hostname Pin
picasso26-Mar-06 18:57
picasso26-Mar-06 18:57 
QuestionMdi Active child Pin
JacquesDP6-Mar-06 17:27
JacquesDP6-Mar-06 17:27 
AnswerRe: Mdi Active child Pin
DigitalKing6-Mar-06 17:50
DigitalKing6-Mar-06 17:50 
GeneralRe: Mdi Active child Pin
JacquesDP6-Mar-06 18:03
JacquesDP6-Mar-06 18:03 
AnswerRe: Mdi Active child Pin
DigitalKing6-Mar-06 18:13
DigitalKing6-Mar-06 18:13 
GeneralRe: Mdi Active child Pin
JacquesDP6-Mar-06 18:49
JacquesDP6-Mar-06 18:49 
AnswerRe: Mdi Active child Pin
DigitalKing6-Mar-06 18:59
DigitalKing6-Mar-06 18:59 
GeneralRe: Mdi Active child Pin
PavanPabolu6-Nov-10 11:21
PavanPabolu6-Nov-10 11:21 
GeneralRe: Mdi Active child Pin
JacquesDP6-Mar-06 18:23
JacquesDP6-Mar-06 18:23 
Questionbind the datagrid Pin
angelagke6-Mar-06 16:09
angelagke6-Mar-06 16:09 
after o add new column inside the datatable and bind into datagrid

DataColumn dc = new DataColumn();
DataTable dt = new DataTable();

dc.AutoIncrement = true;
dc.AutoIncrementSeed =1;
dc.Unique = true;
dc.ColumnName = "No";
dt.Columns.Add(dc);

SqlConnection objCN = new SqlConnection();
SqlCommand objCMD = new SqlCommand();
SqlDataAdapter objDA = new SqlDataAdapte();

objCN.ConnectionString = ConfigurationSettings.AppSettings["DSN"];
objCMD.Connection = objCN;
objCMD.CommandText = cmdText;
objCMD.CommandTimeout = 30;
objDA.SelectCommand = objCMD;

objCN.Open();
objDA.Fill(dt);
objCN.Close();

dGridRecord.DataSource = dt;
dGridRecord.DataBind();

but the new column 'No' i add in is not appear the increment number in my page after i run it.
wat value i need set data field for tis new column 'No' seem tis is auto generate number and no inside my database.

how i bind the 'No' column in my datagrid??D'Oh! | :doh:

angela
AnswerRe: bind the datagrid Pin
goyal manish6-Mar-06 18:00
goyal manish6-Mar-06 18:00 
GeneralRe: bind the datagrid Pin
angelagke6-Mar-06 18:13
angelagke6-Mar-06 18:13 
GeneralRe: bind the datagrid Pin
goyal manish6-Mar-06 23:56
goyal manish6-Mar-06 23:56 

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.