Hi,
I am trying to start edit mode in a cell in child gridview. Since GridView.BeginEdit() can only start edit mode in current cell, I need to set the current cell to be a cell in child gridview, using a similar approach mentioned in the radcontrol reference manual
ms-help://telerik.winforms.2009.2/telerik.winforms.radgrid/Iterate_the_child_rows_collection_of_a_chosen_parent_row_in_hierarchy_RadGridView.html
i have tried this but it does not work
this.gridview.MasterGridViewTemplate.ChildGridViewTemplates[0].GetChildRows(gridview.Rows[i])[0].IsCurrent = true; | |
//or | |
this.dgPolicyComment.CurrentRow = this.gridview.MasterGridViewTemplate.ChildGridViewTemplates[0].GetChildRows(gridview.Rows[i])[0]; | |
//for some i | |
//then run this at the end | |
this.gridview.GridElement.Update(GridUINotifyAction.Reset); |
for the code above I am trying to set the first row of a child gridview (of i th row of the master gridview) to be current cell
i have also found this post,
and it seems the author cannot get it working either.
Thanks
Regards,
Derek