@@ -92,13 +92,13 @@ In order to add control manually in XAML, do the below steps,
9292{% tabs %}
9393{% highlight xaml %}
9494<Window
95- xmlns=” http://schemas.microsoft.com/winfx/2006/xaml/presentation”
96- xmlns: x =” http://schemas.microsoft.com/winfx/2006/xaml”
97- xmlns: syncfusion =” http://schemas.syncfusion.com/wpf”
98- x: Class =” WpfApplication1.MainWindow”
99- Title=” MainWindow” Height=” 350” Width=” 525” >
95+ xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation "
96+ xmlns: x =" http://schemas.microsoft.com/winfx/2006/xaml "
97+ xmlns: syncfusion =" http://schemas.syncfusion.com/wpf "
98+ x: Class =" WpfApplication1.MainWindow"
99+ Title=" MainWindow" Height=" 350" Width=" 525" >
100100 <Grid >
101- <syncfusion: SfMultiColumnDropDownControl x: Name =” sfmultiColumn” />
101+ <syncfusion: SfMultiColumnDropDownControl x: Name =" sfmultiColumn" />
102102 </Grid >
103103</Window >
104104{% endhighlight %}
@@ -224,16 +224,16 @@ public class ViewModel
224224
225225 private void GenerateOrders()
226226 {
227- _orders.Add(new OrderInfo(1001, “ Maria Anders”, “ Germany”, “ ALFKI”, “ Berlin” ));
228- _orders.Add(new OrderInfo(1002, “ Ana Trujilo”, “ Mexico”, “ ANATR”, “ Mexico D.F.” ));
229- _orders.Add(new OrderInfo(1003, “ Antonio Moreno”, “ Mexico”, “ ANTON”, “ Mexico D.F.” ));
230- _orders.Add(new OrderInfo(1004, “ Thomas Hardy”, “UK”, “ AROUT”, “ London” ));
231- _orders.Add(new OrderInfo(1005, “ Christina Berglund”, “ Sweden”, “ BERGS”, “ Lula” ));
232- _orders.Add(new OrderInfo(1006, “ Hanna Moos”, “ Germany”, “ BLAUS”, “ Mannheim” ));
233- _orders.Add(new OrderInfo(1007, “ Frederique Citeaux”, “ France”, “ BLONP”, “ Strasbourg” ));
234- _orders.Add(new OrderInfo(1008, “ Martin Sommer”, “ Spain”, “ BOLID”, “ Madrid” ));
235- _orders.Add(new OrderInfo(1009, “ Laurence Lebihan”, “ France”, “ BONAP”, “ Marseille” ));
236- _orders.Add(new OrderInfo(1010, “ Elizabeth Lincoln”, “ Canada”, “ BOTTM”, “ Tsawassen” ));
227+ _orders.Add(new OrderInfo(1001, " Maria Anders", " Germany", " ALFKI", " Berlin" ));
228+ _orders.Add(new OrderInfo(1002, " Ana Trujilo", " Mexico", " ANATR", " Mexico D.F." ));
229+ _orders.Add(new OrderInfo(1003, " Antonio Moreno", " Mexico", " ANTON", " Mexico D.F." ));
230+ _orders.Add(new OrderInfo(1004, " Thomas Hardy", "UK", " AROUT", " London" ));
231+ _orders.Add(new OrderInfo(1005, " Christina Berglund", " Sweden", " BERGS", " Lula" ));
232+ _orders.Add(new OrderInfo(1006, " Hanna Moos", " Germany", " BLAUS", " Mannheim" ));
233+ _orders.Add(new OrderInfo(1007, " Frederique Citeaux", " France", " BLONP", " Strasbourg" ));
234+ _orders.Add(new OrderInfo(1008, " Martin Sommer", " Spain", " BOLID", " Madrid" ));
235+ _orders.Add(new OrderInfo(1009, " Laurence Lebihan", " France", " BONAP", " Marseille" ));
236+ _orders.Add(new OrderInfo(1010, " Elizabeth Lincoln", " Canada", " BOTTM", " Tsawassen" ));
237237 }
238238}
239239{% endhighlight %}
@@ -249,22 +249,22 @@ Bind the collection created in previous step to `ItemsSource` property by settin
249249{% tabs %}
250250{% highlight xaml %}
251251<Window
252- xmlns=” http://schemas.microsoft.com/winfx/2006/xaml/presentation”
253- xmlns: x =” http://schemas.microsoft.com/winfx/2006/xaml”
254- xmlns: syncfusion =” http://schemas.syncfusion.com/wpf”
255- x: Class =” WpfApplication1.MainWindow”
256- xmlns: local =” clr-namespace: WpfApplication1 ”
257- Title=” MainWindow” Height=” 350” Width=” 525” >
252+ xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation "
253+ xmlns: x =" http://schemas.microsoft.com/winfx/2006/xaml "
254+ xmlns: syncfusion =" http://schemas.syncfusion.com/wpf "
255+ x: Class =" WpfApplication1.MainWindow"
256+ xmlns: local =" clr-namespace: WpfApplication1 "
257+ Title=" MainWindow" Height=" 350" Width=" 525" >
258258 <Window.DataContext>
259259 < local:ViewModel/ >
260260 </Window.DataContext>
261- <Grid x:Name =” Root_Grid” >
262- <syncfusion: SfMultiColumnDropDownControl x: Name =” sfMultiColumn”
263- ItemsSource=” {Binding Orders}”
264- DisplayMember=” OrderID”
265- Width=” 175”
266- Height=”30”
267- SelectedIndex=”2” />
261+ <Grid x:Name =" Root_Grid " >
262+ <syncfusion: SfMultiColumnDropDownControl x: Name =" sfMultiColumn"
263+ ItemsSource=" {Binding Orders}"
264+ DisplayMember=" OrderID"
265+ Width=" 175"
266+ Height="30"
267+ SelectedIndex="2" />
268268 </Grid >
269269</Window >
270270{% endhighlight %}
@@ -287,26 +287,26 @@ By default, the SfMultiColumnDropDownControl generates the columns automatically
287287
288288{% tabs %}
289289{% highlight xaml %}
290- <syncfusion: SfMultiColumnDropDownControl x: Name =” sfMultiColumn”
291- Width=” 175”
292- Height=”30”
293- SelectedIndex=”0”
294- AutoGenerateColumns=” false”
295- DisplayMember=” OrderID”
296- ItemsSource=” {Binding Orders}” >
290+ <syncfusion: SfMultiColumnDropDownControl x: Name =" sfMultiColumn"
291+ Width=" 175"
292+ Height="30"
293+ SelectedIndex="0"
294+ AutoGenerateColumns=" false"
295+ DisplayMember=" OrderID"
296+ ItemsSource=" {Binding Orders}" >
297297 < syncfusion:SfMultiColumnDropDownControl.Columns >
298- <syncfusion: GridTextColumn MappingName=” OrderID” />
299- <syncfusion: GridTextColumn MappingName=” CustomerID” />
300- <syncfusion: GridTextColumn MappingName=” Country” />
298+ <syncfusion: GridTextColumn MappingName=" OrderID" />
299+ <syncfusion: GridTextColumn MappingName=" CustomerID" />
300+ <syncfusion: GridTextColumn MappingName=" Country" />
301301 </syncfusion: SfMultiColumnDropDownControl .Columns>
302302</syncfusion: SfMultiColumnDropDownControl >
303303{% endhighlight %}
304304{% highlight c# %}
305305SfMultiColumnDropDownControl sfMultiColumn = new SfMultiColumnDropDownControl();
306306sfMultiColumn.AutoGenerateColumns = false;
307- sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “ OrderID” });
308- sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “ CustomerID” });
309- sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “ Country” });
307+ sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = " OrderID" });
308+ sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = " CustomerID" });
309+ sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = " Country" });
310310{% endhighlight %}
311311{% endtabs %}
312312
0 commit comments