How to map Objects with Constructor parameters using Automapper
To map Objects that need Constructor Parameters using Automapper you need to use the ConstructUsing Method while Creating the Map. See the Sample Console Applications below. Sample Console Application C#…
How to select a item on rightclick using devexpress ListboxControl
To select a item on rightclick using devexpress ListboxControl you need to use the MouseDown Event. See the samples below. Sample C# Sample VB.NET
How to change the BackgroundColor of a XtraGrid Grouprow using C# or VB.NET
To change the BackgroundColor of a XtraGrid Grouprow you need to use the Gridviews CustomDrawGroupRow Event. Sample C# Sample VB.NET
How to get all Description Attributes of an Enum using C# or VB.NET
To get all Description Attributes of an Enum using C# or VB.NET you can use the snippet below. Sample C# – Class Usage C# Sample VB.NET – Class Usage VB.NET…
How to XSL transform a XDocument in C# and VB.NET with custom namespaces
This snippet will help you to xsl transform xml files with custom namespaces. A Basic snippet which does only work without custom namespaces can be found HERE. The snippet will…
How to use a counter in a XSL Loop (xsl:for-each)
To use a counter in a XSL For-Each block, you can use the position() function, the Counter starts at value 1. Sample XSL see also MSDN position Function
Simple Type Percent for XSD Files
To use the simply type percent (xs:decimal), see the snippet below.
How to get the selected row index in Devexpress Xtragrid Control using C# and VB.NET
To get the selected row index in Devexpress Xtragrid Control using C# and VB.NET you can use the snippet below. Samples Sample C# int selectedRowIndex = gridView1.FocusedRowHandle; Sample VB.NET Dim…
Top 10 reads of April 2015
These are the Top 10 reads of April 2015. How to search stored procedures using MS-SQL How to manually populate a multicolumn devexpress TreeList using C# and VB.NET How to…
How to read a String to Textreader using C# and VB.NET
To read a String to Textreader using C# and VB.NET you can use the snippet below. Sample C# Sample VB.NET