In order to know whether the SelectionChanged event is triggered by the master template or by a child template, you can check whether the Parent property of the corresponding GridViewTemplate is null. This will ensure that the row is from the master template. Please refer to the following code snippet:
private void RadGridView1_SelectionChanged(object sender, EventArgs e)
var selectedRow = this.radGridView1.SelectedRows;
bool isMaster = (selectedRow.ViewTemplate.Parent == null);
I hope this helps. Let me know if you have other questions.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.