# Template Selectors Overview

## What is a Template Selector?

The **DataTemplateSelector** provides a way to apply data templates based on custom logic.

Typically, you use a template selector when you have more than one data template defined for the same type of objects. For example, use it if your binding source is a list of student objects and you want to apply a particular template to the part-time students. You can do this by creating a class that inherits from **DataTemplateSelector** and by overriding the **SelectTemplate()** method. Once your class is defined you can assign an instance of the class to the template selector property of your element.

> tip For more information, you can check the [DataTemplateSelector Class msdn article](http://msdn.microsoft.com/en-us/library/system.windows.controls.datatemplateselector\(v=vs.110\).aspx).

## See Also

* [CellTemplateSelector](https://www.telerik.com/products/wpf/documentation/controls/radgridview/template-selectors/cell-template-selector)

* [Row Details TemplateSelector](https://www.telerik.com/products/wpf/documentation/controls/radgridview/row-details/templateselector)
