Last post Feb 23, 2012 04:38 PM by shanaturs
Apr 19, 2011 10:03 AM|SSemichev|LINK
I use DetailsList.aspx template page.
Is that possible to bind a DetailsView to the first row in a GridView after filtrations?
Thanks in advance!
Apr 19, 2011 10:56 AM|sam_xiii|LINK
here is a starting point (it's a dropdownlist but the idea it's the same idea with a gridview)
http://www.sambeauvois.be | @sambeauvois
Apr 19, 2011 11:16 AM|SSemichev|LINK
Thank you for the answer.
With datagrid we have slightly different situation…
So this code doesn’t update DetailsView content
protected void OnFilterSelectedIndexChanged(object sender, EventArgs e)
GridView1.EditIndex = -1;
GridView1.PageIndex = 0;
GridView1.SelectedIndex = 0;
Apr 21, 2011 10:13 PM|Decker Dong - MSFT|LINK
In fact you can use two SqlDataSources, one for the GridView to show all the contents and the other for the DetailsView, and then try this following codes:
Here's the demo for you downloading:
Here's the online demo:
You can see when you select a row, the DetailsView will show the detail information for you to modify……
Jun 28, 2011 03:05 AM|B020910196|LINK
why i can't go to the
http://mattberseth2.com/, page will be redirect to the
http://www.searchmagnified.com/ i need those sample...can someone help me..thanks
Jun 28, 2011 04:18 AM|sjnaughton|LINK
It looks like the domain has been hijacked.
Feb 23, 2012 04:38 PM|shanaturs|LINK