| Visual Basic (Declaration) | |
|---|---|
Public Class IndexToOddConverter Implements IValueConverter | |
| C# | |
|---|---|
public class IndexToOddConverter : IValueConverter | |
All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to alternate the appearance of data row styles using the IndexToOddConverter.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> | |
System.Object
Xceed.Wpf.DataGrid.Converters.IndexToOddConverter
Supported Operating Systems: Windows Server 2003 Service Pack 1; Windows Vista; Windows XP Service Pack 2
Copy Code