Thanks everyone who are reading this post. I did it myself. I am posting the code below, for reference of others who need it. Please suggest if any good modification can be made to it.
private void btnProcessMedia_Click(object sender, RoutedEventArgs e)
if (dgProjects.SelectedItems.Count > 0)
for (int i = 0; i < dgProjects.SelectedItems.Count; i++)
System.Data.DataRowView selectedFile = (System.Data.DataRowView)dgProjects.SelectedItems[i];
string str = Convert.ToString(selectedFile.Row.ItemArray);