New to Telerik UI for WPF? Start a free 30-day trial
Get the data from a row
Updated on Sep 24, 2025
This article shows how to obtain the data from a row of RadGridView.
We will consider two scenarios - getting the data from the selected row and getting the data from any GridViewRow.
- The SelectedItem property of RadGridView returns an object which can be cast to your business object. So, it is very easy to get the underlying data from the selected item:
C#
private void Button1_Click(object sender, RoutedEventArgs e)
{
Club club = this.clubsGrid.SelectedItem as Club;
string message = string.Format("Name: {0} \n Established: {1} \n Capacity: {2}", club.Name,
club.Established,
club.StadiumCapacity);
MessageBox.Show(message);
}- Getting the data from an arbitrary GridViewRow is almost the same - you just need to cast its DataContext or Item property to your business object:
C#
void clubsGrid_RowActivated(object sender, Telerik.Windows.Controls.GridView.RowEventArgs e)
{
var row = e.Row as GridViewRow;
Club club = row.Item as Club;
string message = string.Format("Name: {0} \n Established: {1} \n Capacity: {2}", club.Name,
club.Established,
club.StadiumCapacity);
MessageBox.Show(message);
}