Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to work with form view

Status
Not open for further replies.

yosie2007

Technical User
Jun 23, 2007
46
US
I have a gridview and one of the column in the girdview is a link and when the user select the link it will open a new form view with the detail information. I am just wondering if I could display the form view next to the selected value form the gridview.right now form view is always on the top whatever row i am selecting. thanks
 
so, when you click on the link, it is opening a new page?, or the detail is appearing on the same page, but below the gridview?
 
Thank you for the response. Both girdview and formview appear on the same page but when I select the link button the formview will appear on the top not aligned with the selected gridview value.Sometimes I have to scroll up to see the detailed view result. thanks
 
I think that you have 2 options;
you either want the detail view in a div, and have it appear / disappear in place, which will use javascript and dhtml

Or you add the detail view programatically, in one of the cells.

(I'd prefer the first method, as suddenly inserting a detail view into the gridview will change the layout of the page. In addition to that, you already have the code to display the detail view. However, if it appears in a div, then it could obscure some of the gridview, whilst inserting the detail view into the gridview wont)

Think about how you'd like to proceed, as it will be easier to decide on a course of action now, than to try both later on..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top