Connect from DataGrid to Detail
-
I am trying to move from a DataGrid to a new form that presents me with the information selected from the grid for updataing of a record. On the DataGrid I present a name and customer number. From there I can select a specific customer and then want to move to a form where the remaining information is presented to me for that specific customer (ie the 7th row on the grid) and allows me to change the information then return to the grid. I've tried a few things and have been unsuccessful so far. Thanks in advance, Jim
-
I am trying to move from a DataGrid to a new form that presents me with the information selected from the grid for updataing of a record. On the DataGrid I present a name and customer number. From there I can select a specific customer and then want to move to a form where the remaining information is presented to me for that specific customer (ie the 7th row on the grid) and allows me to change the information then return to the grid. I've tried a few things and have been unsuccessful so far. Thanks in advance, Jim
How about using a detail form that accepts a customer id as a queryString parameter? http://localhost/myApp/myDetailForm.aspx?id=xxxx The detail form could present itself as a data entry form for a new record if the id parameter is not present, or an update form querying the db for data on customer id=xxxx and presenting it. Then use a TemplateColumn in your datagrid with a data binding expression to construct a hyperlink to the detail form, supplying the id. Just one idea.