![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I defined an object source with GetData(), Insert(Object object), Update (Object object), Delete(Object object). When I connected the datasource to a DataGrid View and a Details View, ASP.NET worked well for all other commands except "Delete". There is no response by either clicking the DataGrid's view Delete command or the Details View's Delete command. Everything else seems to be working fine. Any suggestions will be greatly appreciated. Alan L. |
#3
| |||
| |||
|
|
Hello, The DataGrid View and Details View commands now generated an error message inside the Delete(Object object)" THERE IS NO ROW AT POSITION 0. Line 139: DockandSlipDS.DockTableRow row = Line 140: (DockandSlipDS.DockTableRow) Line 141: _dockTA.GetDataByDockID(dock.DockID). Rows[0]; It appears that ASP.NET 2.0 sent an empty record to the Delete Command. Anyone can give me hint about making ASP.NET send the right information to the Delete method? Thanks, Alan L. Hello, [quoted text clipped - 11 lines] Alan L. |
#4
| |||
| |||
|
|
Hello, I solved this problem by assigning DataKeyNames to the control. Cheers, Alan L. alee wrote: Hello, The DataGrid View and Details View commands now generated an error message inside the Delete(Object object)" THERE IS NO ROW AT POSITION 0. Line 139: DockandSlipDS.DockTableRow row = Line 140: (DockandSlipDS.DockTableRow) Line 141: _dockTA.GetDataByDockID(dock.DockID). Rows[0]; It appears that ASP.NET 2.0 sent an empty record to the Delete Command. Anyone can give me hint about making ASP.NET send the right information to the Delete method? Thanks, Alan L. Hello, [quoted text clipped - 11 lines] Alan L. -- Message posted via http://www.dotnetmonster.com |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |