Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 22:07
LordZoster29-May-11 22:07 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
Paramu197329-May-11 22:13
Paramu197329-May-11 22:13 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 22:17
LordZoster29-May-11 22:17 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 22:37
LordZoster29-May-11 22:37 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
Andy_L_J29-May-11 22:47
Andy_L_J29-May-11 22:47 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
Paramu197329-May-11 22:41
Paramu197329-May-11 22:41 
GeneralRe: Default datetime.now in datatable and bound datagridview Pin
LordZoster29-May-11 23:14
LordZoster29-May-11 23:14 
QuestionCurious DataTable Problem…? Pin
Paramu197329-May-11 20:49
Paramu197329-May-11 20:49 
Hi, Iam using C#2010. I have a problem with my SQL-Save {DataAdapter.Update(DataTable);}.

Actually I have created a datatable and Columns added properly. Then its getting save properly. No Problem.

But while I run a linq Query and created a DataTable, its not getting update. While I check the datatable its showing the same column name. But its not getting update. I can't understand the problem. Thanks for the Ideas.

var Results = from SelRow in MyDtb1.AsEnumerable() where SelRow.Field("door_no") != null select SelRow;
DataTable ChkResult = Results.CopyToDataTable();
ChkResult.AcceptChanges();

MySQLCon.Open();
SqlTransaction Trans1 = MySQLCon.BeginTransaction();
VeSavDAp.UpdateCommand.Transaction = Trans1;
VeSavDAp.InsertCommand.Transaction = Trans1;
myDataGrid1.CurrentCell = myDataGrid1.FirstDisplayedCell;
myDataGrid1.EndEdit();
VeSavDAp.AcceptChangesDuringUpdate = true;
VeSavDAp.Update(ChkResult);
Trans1.Commit();
MYSQLCon.Close();


Thanks For The Ideas.Thumbs Up | :thumbsup:
AnswerRe: Curious DataTable Problem…? Pin
Mycroft Holmes29-May-11 23:20
professionalMycroft Holmes29-May-11 23:20 
QuestionGeneric and Type of [modified] Pin
PozzaVecia29-May-11 10:09
PozzaVecia29-May-11 10:09 
AnswerRe: Generic and Type of Pin
Mark Salsbery29-May-11 10:12
Mark Salsbery29-May-11 10:12 
GeneralRe: Generic and Type of Pin
PozzaVecia29-May-11 10:57
PozzaVecia29-May-11 10:57 
AnswerRe: Generic and Type of PinPopular
AspDotNetDev29-May-11 10:33
protectorAspDotNetDev29-May-11 10:33 
GeneralRe: Generic and Type of Pin
PozzaVecia29-May-11 10:58
PozzaVecia29-May-11 10:58 
NewsGestures 14+: Project on Hand Gesture Recognition Pin
makboyakram28-May-11 1:00
makboyakram28-May-11 1:00 
GeneralRe: Gestures 14+: Project on Hand Gesture Recognition Pin
Richard MacCutchan28-May-11 1:47
mveRichard MacCutchan28-May-11 1:47 
GeneralRe: Gestures 14+: Project on Hand Gesture Recognition Pin
makboyakram28-May-11 3:45
makboyakram28-May-11 3:45 
QuestionHow to keep Form Instance for further Re-open? Pin
Paramu197328-May-11 0:47
Paramu197328-May-11 0:47 
AnswerRe: How to keep Form Instance for further Re-open? Pin
DaveyM6928-May-11 2:48
professionalDaveyM6928-May-11 2:48 
GeneralRe: How to keep Form Instance for further Re-open? Pin
Paramu197328-May-11 3:39
Paramu197328-May-11 3:39 
QuestionModem Pin
Chuck Richards27-May-11 9:03
Chuck Richards27-May-11 9:03 
AnswerRe: Modem Pin
AnnieMacD27-May-11 11:16
AnnieMacD27-May-11 11:16 
AnswerRe: Modem Pin
Luc Pattyn27-May-11 14:25
sitebuilderLuc Pattyn27-May-11 14:25 
GeneralRe: Modem Pin
Chuck Richards30-May-11 11:10
Chuck Richards30-May-11 11:10 
QuestionClickOnce [modified] Pin
kurmanc27-May-11 6:02
kurmanc27-May-11 6:02 

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.