Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > FormView GridView connection

Thread Tools

FormView GridView connection

Posts: n/a
If someone could help...

My goal is to attach a FormView control to a GridView control such that
clicking the Select link on a record in the GridView will cause that record
to be displayed in the FormView control.

So far I've got the GridView displaying all the correct records, and the
FormView populating on the page's initial load. The FormView has its own
data source - it points to the same table the GridView uses, but has a
'where' clause that refers back to the GridView control on two fields. The
datasource has default values for those two fields, and the data that is
displayed on the initial page load reflects the record whose keys equal the
default values. So far, so good.

When I click another line's Select link, the page repaints, but the
FormView control is empty. Viewing the source I can see its skeleton, but
no content. I've breakpointed at the control's PreRender function, and the
DataItem is populated on the initial page load, but is null on the postback.

I'm sure I'm missing something fairly basic. Can I get a point in the
right direction?


-- Removed)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formview within Formview Chris ASP .Net 0 05-19-2007 04:12 PM
FormView/Repeater/ Eval(FormView data) David Thielen ASP .Net Web Controls 2 06-16-2006 07:56 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
Bind profile custom properties (from web.config) to gridview or formview Giorgio ASP .Net 0 01-09-2006 07:49 PM
FormView GridView connection BJF ASP .Net Web Controls 0 12-08-2005 01:09 PM