I get the index out of range exception when compiling my grid view to display a set of orders.
Rows(i - 1)("Rec ID") = lbl Voucher row Index = 1 Next dt Current Data. Add(dr Current Row) View State("Current Data") = dt Current Data Grid View1. Write("View State is null") End If Set Previous Data() End Sub Private Sub Set Previous Data() Dim row Index As Integer = 0 If View State("Current Data") Is Not Nothing Then Dim dt As Data Table = Direct Cast(View State("Current Data"), Data Table) If dt.
Must be non-negative and less than the size of the collection.
This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Protected Sub Data Grid Odin_Row Deleting1(By Val sender As Object, By Val e As System.
NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions.
Text; Line 118: string strstate = "delete from tb_citystate_master where citystate_nm= '" delval "'"; But when I check with the database the record is deleted.
Joe hi Joe, The stack trace looks something like: [Argument Out Of Range Exception: Index was out of range.
Grid View Update Event Args) Handles Data Grid Odin.
Open() mycommand = New Sql Command("sp_Service Updt", myconnection) mycommand.
- The gridview has a button "Delete" for deleting a row. Grid View1_Row Deleting(Object sender, Grid View Delete Event Args e) in e:\Desktop Items\Cheema\Web Sites\payrolldemo\finalformlayout\state_cs:117 System.