A very simple of getting a selected row value from Datagrid on double click… 1) Create a double click event on WPF form/window private void uxABC_MouseDoubleClick(object sender, MouseButtonEventArgs e){ myData decData = uxABC.SelectedItem as MyData; Guid myId = decData.MyId; } … Read More
Microsoft

How to display a new window by double clicking a row in datagrid in WPF
An easy way of displaying a new window in WPF by double clicking a selected row in Data Grid Add a new second window to project Once added, add any datagrid, rows, columns you need to, example Then go FirstWindow.xaml … Read More
WPF call main parent control in child control with event handler
Below is a simple example of a WPF solutio and explains how to call a parent control’s method in child control click event. In this case we will be using 1) Main window 2) Parent user control 3) Child user … Read More
Sending data in utf-8 format in REST service
I had a requirement from a client where data we were trying to send had some non-english characters i.e. Turkish characters.Usually sending data by converting into bytes and send a stream works but client was unable to read. Below are … Read More
Why not to use try exception in C# service
I was working on a REST service for a client and then that service was being used by a third party to throw huge data in it. Couple of methods we being called and everything seemed to work fine however … Read More
How to generate proxy from wsdl
How to generate proxy from wsdl There are several ways of generating a proxy from WSDL in C# however one below might help 1) First get wsdl file (abc.cs)2) Run the command below using Command Prompt wsdl /l:cs /protocol:SOAP /o:C:\Development\WSDL\Reference.cs … Read More
Creating a WCF service to use with CRM HTML web resource
In this example we are going to create a WCF service which will be later consumed using HTML web resource (AJAX call) in CRM 2015/2013. First we need to create a simple Class library project in Visual Studio 2013. Give … Read More
CRM Call WCF Service in HTML Web Resource using AJAX
Recently I have worked on arequirement where I had to write a service which was going to be used by different clients and had to call same service using HTML web resource in CRM 2015.To achieve this first of all … Read More
wcf service wsdl domain name
When creating a new WCF and hosting locally or dev/prod server you might come across an issue where WSDL will display a URL with computer/local name which is different to URL of service Fro example actual URL might be And … Read More
Get and Set value using ODATA End Points
Below is a sample code which gets data from a custom entity by passing name of the record – In code below, I am triggering function ‘CheckAndSetOutcode’ on change of a field on a form (post code in this case) … Read More