I would like to find the cell from the name instead of the index. Is it possible?
<telerik:RadGridView ItemsSource="{Binding Tests}"
AutoGenerateColumns="False"
RowLoaded="RadGridView_RowLoaded">
<telerik:RadGridView.Columns>
<telerik:GridViewToggleRowDetailsColumn />
<telerik:GridViewDataColumn Header="Title" DataMemberBinding="{Binding Title}" Name="Title" />
<telerik:GridViewDataColumn Header="Skapad" DataMemberBinding="{Binding Created}" Name="Modified" />
</telerik:RadGridView.Columns>
private void RadGridView_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
{
if (e.Row is Telerik.Windows.Controls.GridView.GridViewRow)
{
if (e.DataElement != null)
{
ClearIfDefaultDate(e.Row.Cells[2].Content as TextBlock);
}
}
}