Quantcast
Channel: How to display correct information from gridview on detailsview when sorting?
Browsing all 5 articles
Browse latest View live

Re: How to display correct information from gridview on detailsview when...

I'm sorry, but I'm confused with the answer. Is this "gvStudent.SelectedValue (datakeynames="id")" done at the datasource or in my C# code. Can you please provide an example?Thanks for your help!

View Article



Re: How to display correct information from gridview on detailsview when...

I suggest you using gvStudent.SelectedValue (datakeynames="id") to select dvStudent data (one record only)instead changing dvstudent.PageIndex

View Article

How to display correct information from gridview on detailsview when sorting?

I have a gridview that opens up a modalpopup with a detailsview when a selection is made. However, if I sort the information it doesn't display the correct user on the detailsview. How can I correct...

View Article

Re: How to display correct information from gridview on detailsview when...

set your griview datakeynames to your pk field. in selectedindexchanged event, use gridview SelectedValue to querying your detailview and rebind, dont use dv paging.

View Article

Re: How to display correct information from gridview on detailsview when...

Thank you Oned_gk! You are a genius! 

View Article

Browsing all 5 articles
Browse latest View live




Latest Images