when i edit a row in a ListDetails, a different row may still be selected. Is there a way to make, that as soon as i press the "edit" link, the according row is being selected in the List and in the DetailView at the same time?
when i edit a row in a ListDetails, a different row may still be selected.
What does this mean? As far as I see, I think when you select a Row from the ListDetails, the row will be in the Edit mode.——that allows you to edit.
solnishkaa
Is there a way to make, that as soon as i press the "edit" link, the according row is being selected in the List and in the DetailView at the same time?
Yes, you can set your DetailsView's SelectCommand's argument to that of ControlParametar——SelectedValue, and thus when you choose a record from the GridView, the FormView/DetailsView will show the record automatically.
when i edit a row in a ListDetails, a different row may still be selected.
What does this mean? As far as I see, I think when you select a Row from the ListDetails, the row will be in the Edit mode.——that allows you to edit.
In the ListDetail i have a List view above and a Detail view under it. When i press "select", the row gets marked in the list view and it is selected in the detail view at the bottom of the page. But when i press "edit", the rows gets in the edit mode in
the list, but there still may be a different row marked (yellow) as selected and in the detail view you also see the selected and not the edited row. Users get confused when they work with it.
solnishkaa
0 Points
2 Posts
Set edited row selected
Nov 08, 2012 02:14 PM|LINK
Hi,
when i edit a row in a ListDetails, a different row may still be selected. Is there a way to make, that as soon as i press the "edit" link, the according row is being selected in the List and in the DetailView at the same time?
Thank you
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Set edited row selected
Nov 09, 2012 05:08 AM|LINK
What does this mean? As far as I see, I think when you select a Row from the ListDetails, the row will be in the Edit mode.——that allows you to edit.
Yes, you can set your DetailsView's SelectCommand's argument to that of ControlParametar——SelectedValue, and thus when you choose a record from the GridView, the FormView/DetailsView will show the record automatically.
For more you can refer to this:
http://www.codeproject.com/Articles/16780/GridView-FormView-Master-Detail-Control
solnishkaa
0 Points
2 Posts
Re: Set edited row selected
Nov 12, 2012 04:23 PM|LINK
In the ListDetail i have a List view above and a Detail view under it. When i press "select", the row gets marked in the list view and it is selected in the detail view at the bottom of the page. But when i press "edit", the rows gets in the edit mode in the list, but there still may be a different row marked (yellow) as selected and in the detail view you also see the selected and not the edited row. Users get confused when they work with it.
Thank you
solnishkaa
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Set edited row selected
Nov 12, 2012 11:44 PM|LINK
Why? How did you code?
Generally speaking, I don't think it could be so when you select a row, other rows still are in the select mode.
sjnaughton
All-Star
27308 Points
5458 Posts
MVP
Re: Set edited row selected
Nov 13, 2012 10:46 AM|LINK
Hi Decker, this is the ListDetails page template in the DynamicData\PageTemplates folder.
Always seeking an elegant solution.