How can I determine if I'm editing a parent or a child in the radgrid?
I tried something like this:
But I'm keep going in the first part of my if statement.
Thanks
I tried something like this:
| private void radgrid_CellEndEdit(object sender, GridViewCellEventArgs e) |
| { |
| Console.WriteLine("cell edit"); |
| if (radgrid.Rows[e.RowIndex].ViewTemplate.Parent == null) |
| { |
| Console.WriteLine(radgrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value); |
| } |
| else |
| { |
| var template = radgrid.MasterGridViewTemplate.ChildGridViewTemplates[0]; |
| Console.WriteLine(template.Rows[e.RowIndex].Cells[e.ColumnIndex].Value); |
| } |
| } |
But I'm keep going in the first part of my if statement.
Thanks