Microsoft
Software
Hardware
Network
Question : How to save, edit, and read data (in code behind) from an unbound Gridview in ASP.NET
Hi experts,
I am having some issues trying to save and edit data from an unbound asp.net gridview. Is this even possible?
Here's the scenario. I populate a gridview in VS2008 with a dataset and datatable which I create programmatically
on Page_Load of the main page. This grid contains a listing of the fieldnames from an xsd fille that changes based
on what report a user selects from a hard-coded folder path. This grid also contains sorting options for sorting
any of the fields (given a numeric #), whether or not to include a given field on a report, and whether or not sorting
should occur in Ascending or Descending order. The population of this grid with field names is fine and Edit/Update/Cancel
links are visible. My problem is in obtaining the values after the user hits update so that I can save it to the in-memory
recordset and then re-bind the grid with the new data. In this way I can build a dynamic SQL statement to build a
query for a report which will then get rendered via the in memory dataset. Does anyone have any concrete examples
that actually work or give me some links that will actually help me out?
I have tried to get the controls data via findcontrols at various levels in the object but I still seem to get nothing
returned.
Bob
Answer : How to save, edit, and read data (in code behind) from an unbound Gridview in ASP.NET
Please try the following link.
Unbound GridView
Random Solutions
Create Table on the fly for BULK Insert
Outlook 2007 prompts that it Needs Password
SBS 2008 / Exchange Server 2007/Outlook 2007 Sync Error 0X80072F06 - Offline Address Book
Can't see hidden files
The error is a 1396: Logon Failure - the target account name is incorrect.
Getting wav files to play over RDP
Macro to keep certain colums and delete the rest.
FOLDER OPTIONS AND SEARCH NO LONGER IN WIN XP
Determine whether file is saved in Access 2007 "trusted location"
Loading any ActiveX.ocx in VB.NET Form