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

C#

 
QuestionC# NTier and LINQ Pin
Illegal Operation23-Feb-09 14:31
Illegal Operation23-Feb-09 14:31 
AnswerRe: C# NTier and LINQ Pin
Christian Graus23-Feb-09 14:36
protectorChristian Graus23-Feb-09 14:36 
QuestionSimple, but how can I list flies in a dropdown? Pin
KnotBeer23-Feb-09 9:28
KnotBeer23-Feb-09 9:28 
AnswerRe: Simple, but how can I list flies in a dropdown? Pin
Christian Graus23-Feb-09 9:35
protectorChristian Graus23-Feb-09 9:35 
GeneralRe: Simple, but how can I list flies in a dropdown? Pin
KnotBeer23-Feb-09 9:40
KnotBeer23-Feb-09 9:40 
GeneralRe: Simple, but how can I list flies in a dropdown? Pin
Luc Pattyn23-Feb-09 10:28
sitebuilderLuc Pattyn23-Feb-09 10:28 
AnswerRe: Simple, but how can I list flies in a dropdown? Pin
pdohara23-Feb-09 11:08
pdohara23-Feb-09 11:08 
QuestionLINQ / DataGrid / Databinding Pin
honkman23-Feb-09 8:59
honkman23-Feb-09 8:59 
I've started using LINQ to get data out of my SQL DB and it workes fine. I load the data and use databinding to get the data in the grid. The code lools like that:

BudgetDataDataContext _budgetDataContext = new BudgetDataDataContext();
bindingSourceNsc.DataSource = from n in _budgetDataContext.Nscs select n;
gridControlTest.DataSource = this.bindingSourceNsc;


The data is shown in the grid. That's fine. Now the user can change values directly in the grid. I'M chatching the event when the change has been made and want to write the new data to the database (update). The code therefore looks like that:

_budgetDataContext.SubmitChanges(System.Data.Linq.ConflictMode.FailOnFirstConflict);


The problem now is, that the data in the database is not changed. Can anyone give me a hint what I've done wrong?

BR
Honk
AnswerRe: LINQ / DataGrid / Databinding Pin
Judah Gabriel Himango23-Feb-09 11:45
sponsorJudah Gabriel Himango23-Feb-09 11:45 
Questionusing System.Threading.Tasks; Pin
TerRO_GirL23-Feb-09 8:44
TerRO_GirL23-Feb-09 8:44 
AnswerRe: using System.Threading.Tasks; Pin
Dave Kreskowiak23-Feb-09 9:07
mveDave Kreskowiak23-Feb-09 9:07 
GeneralRe: using System.Threading.Tasks; Pin
TerRO_GirL23-Feb-09 9:13
TerRO_GirL23-Feb-09 9:13 
GeneralRe: using System.Threading.Tasks; Pin
harold aptroot23-Feb-09 14:05
harold aptroot23-Feb-09 14:05 
GeneralRe: using System.Threading.Tasks; Pin
Dave Kreskowiak23-Feb-09 14:15
mveDave Kreskowiak23-Feb-09 14:15 
QuestionRadio Buttons Pin
bar300023-Feb-09 7:23
bar300023-Feb-09 7:23 
AnswerRe: Radio Buttons Pin
0x3c023-Feb-09 7:35
0x3c023-Feb-09 7:35 
GeneralRe: Radio Buttons Pin
bar300023-Feb-09 7:50
bar300023-Feb-09 7:50 
Questionhow to open and play mpeg file using aforge.net Pin
sbs23-Feb-09 7:17
sbs23-Feb-09 7:17 
AnswerRe: how to open and play mpeg file using aforge.net Pin
Christian Graus23-Feb-09 9:09
protectorChristian Graus23-Feb-09 9:09 
QuestionHow to get the directory (folder) on which user has done right click Pin
Abhishek Kulkarni23-Feb-09 6:52
Abhishek Kulkarni23-Feb-09 6:52 
AnswerRe: How to get the directory (folder) on which user has done right click Pin
0x3c023-Feb-09 7:44
0x3c023-Feb-09 7:44 
AnswerRe: How to get the directory (folder) on which user has done right click Pin
Luc Pattyn23-Feb-09 8:16
sitebuilderLuc Pattyn23-Feb-09 8:16 
GeneralRe: How to get the directory (folder) on which user has done right click Pin
Abhishek Kulkarni23-Feb-09 18:31
Abhishek Kulkarni23-Feb-09 18:31 
Question[Message Deleted] Pin
muhammadafsal23-Feb-09 6:30
muhammadafsal23-Feb-09 6:30 
AnswerRe: Hello ,Brothers ,hav you know any error priventig codes in asp.net or c#? Pin
EliottA23-Feb-09 7:24
EliottA23-Feb-09 7:24 

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.