Hi,
I hav got aWDG and a FormView in an updatePanel. There are two sqlDataSources (one catches all and on collect data depending of the ID of the DatabaseRecord).
When I select a Row in WDG the Formview shows the right databaseEntry. When i click edit it alwas shows the first Record. How can i bind the Formview to the selectedRow ( i still get the ID of the row)?
Hello,
You can pass row index in command argument as shown below:
CommandArgument='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).Item, "Row.Index") %>'
Refer to the links below that will give you more details on this:
<http://es.infragistics.com/community/forums/p/32581/181794.aspx> <http://es.infragistics.com/community/forums/t/57121.aspx>
I hope this helps.
I tried it without success.
Also this:
CommandArgument='<%# DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "ID") %>'
somthing like can't convert SystemWeb.UI.WebControls.FormView to Infragistics.Web.UI.TemplateContainer.
I want to mention, that the button is in the FormView.ItemTemplate.
I want to edit my gridRows in a Formview on the same Page.
I can't find any sample for this (Grid = Master, FormView = Detail)