Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# datagridview help >_< Pin
Abhinav S27-Sep-13 22:20
Abhinav S27-Sep-13 22:20 
GeneralRe: C# datagridview help >_< Pin
Tnebm27-Sep-13 22:49
Tnebm27-Sep-13 22:49 
AnswerRe: C# datagridview help >_< Pin
Richard MacCutchan27-Sep-13 22:31
mveRichard MacCutchan27-Sep-13 22:31 
GeneralRe: C# datagridview help >_< Pin
Tnebm27-Sep-13 22:50
Tnebm27-Sep-13 22:50 
QuestionMVVM and MVC Pin
Member 936684127-Sep-13 13:08
Member 936684127-Sep-13 13:08 
AnswerRe: MVVM and MVC Pin
Abhinav S27-Sep-13 18:05
Abhinav S27-Sep-13 18:05 
AnswerRe: MVVM and MVC Pin
Mycroft Holmes28-Sep-13 13:32
professionalMycroft Holmes28-Sep-13 13:32 
AnswerRe: MVVM and MVC Pin
Keith Barrow30-Sep-13 1:56
professionalKeith Barrow30-Sep-13 1:56 
It's worth mentioning that Microsoft has a framwork called "MVC" which is part of ASP.NET, this is unfortunate naming as, although it is an implementation of the MVC pattern, it is a specific technology so you need to state state whether you mean "ASP.NET MVC" or "the MVC pattern". There are plenty of articles about MVC and MVVM, so if you want an introduction to the basics, then googling those is easy.

Assuming the patterns: Neither is "best", both are acceptable technology choices, you need to decide which is most applicable to you. MVVM is considered by some/many as a sub-pattern of MVC, where the view model takes some/all of the lifting the controller is supposed that relates to handling to do in MVC but remains specifically a model of the view data/commands etc. At the very least MVVM should be seen as a progression from MVC. Quite often in MVVVM something is needed to replace the controller's orchestration/data accessing functions so in practice you often see controller-like classes bleeding in to MVVM. Likewise having a model of the view is handy, and unit testable so you also see the "vm" part bleeding in to "MVC" apps, or at least the ASP.NET ones I have worked on. SO has a discussion of the two patterns here[^], the first answer "Sorry to have to disagree with such a highly voted answer..." gives quite a bit of information on this topic, the discussion also contains the following quote:

Josh Smith
If you put ten software architects into a room and have them discuss what the Model-View-Controller pattern is, you will end up with twelve different opinions.



When I've written WPF and silverlight apps, MVVM has fitted hand-in-glove, so if you are using these technologies you should use those, but as I say, you either end up adding data access & orchestration into the VM (breaking the Single Responsibility principle) or you start adding controller -like classes. That said, I've generally coupled WPF apps to WCF services, and I've had them present data that could use tech like automapper to convert to VMs.

QuestionHow to read another application contents in C# Pin
S.S.Cheral27-Sep-13 2:05
S.S.Cheral27-Sep-13 2:05 
AnswerRe: How to read another application contents in C# Pin
Keith Barrow27-Sep-13 2:38
professionalKeith Barrow27-Sep-13 2:38 
AnswerRe: How to read another application contents in C# Pin
Abhinav S27-Sep-13 18:06
Abhinav S27-Sep-13 18:06 
QuestionInheriting abstract class Pin
ankum1626-Sep-13 23:35
ankum1626-Sep-13 23:35 
AnswerRe: Inheriting abstract class Pin
OriginalGriff27-Sep-13 0:44
mveOriginalGriff27-Sep-13 0:44 
GeneralRe: Inheriting abstract class Pin
ankum1627-Sep-13 19:46
ankum1627-Sep-13 19:46 
GeneralRe: Inheriting abstract class Pin
OriginalGriff27-Sep-13 19:58
mveOriginalGriff27-Sep-13 19:58 
AnswerRe: Inheriting abstract class Pin
PIEBALDconsult27-Sep-13 18:36
mvePIEBALDconsult27-Sep-13 18:36 
Generalcopyright symbol Pin
Member 1009175626-Sep-13 23:00
Member 1009175626-Sep-13 23:00 
GeneralRe: copyright symbol Pin
Pete O'Hanlon26-Sep-13 23:08
mvePete O'Hanlon26-Sep-13 23:08 
GeneralRe: copyright symbol Pin
Member 1009175626-Sep-13 23:19
Member 1009175626-Sep-13 23:19 
AnswerRe: copyright symbol Pin
Abhinav S27-Sep-13 22:35
Abhinav S27-Sep-13 22:35 
Questionhow to search a pdf file on web Pin
faiza.butt8926-Sep-13 13:19
faiza.butt8926-Sep-13 13:19 
AnswerRe: how to search a pdf file on web Pin
Abhinav S26-Sep-13 20:01
Abhinav S26-Sep-13 20:01 
GeneralRe: how to search a pdf file on web Pin
faiza.butt8929-Sep-13 13:13
faiza.butt8929-Sep-13 13:13 
AnswerRe: how to search a pdf file on web Pin
Pete O'Hanlon26-Sep-13 20:37
mvePete O'Hanlon26-Sep-13 20:37 
QuestionHow to Set the column of excel as bold while importing from datatable Pin
superselector26-Sep-13 3:37
superselector26-Sep-13 3:37 

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.