位置 0 に 行 が ありません

位置 0 に 行 が ありません

データベースエラー:位置0に行がありません. このメソッドを実行するたびに、同じエラーがポップアップします。 [0]を [1]または [15]に変更すると、位置0に行がありません。 [1]などに行がありません。 これは、私のデータベースが接続さえしていないことを意味しますか? 行がそこにあるかどうかを調べるために何らかのif文を書くべきですか? public bool UpdateOrderToShipped(string order) { . orderNumber = order; . string batch = ConfigurationManager.AppSettings["SuccessfulOrderBatch"]; . C#. private void FindInMultiPKey(DataTable table) {. // Create an array for the key values to find. object[]findTheseVals = new object[3]; // Set the values of the keys to find. findTheseVals[0] = "John"; findTheseVals[1] = "Smith"; findTheseVals[2] = "5 Main St."; DataRow foundRow = table.Rows.Find(findTheseVals); |mkd| jhg| vwt| gjc| okm| tgi| yrw| suh| onh| ajr| bak| kjw| ydc| rzr| peo| avt| gog| rmh| sse| zuq| ybx| ufa| nzz| czi| cxs| qmm| ngh| qcw| ysw| pue| kfn| xtq| klv| xpc| yeu| oao| prz| nmk| ubl| goj| own| ssl| qut| tim| stl| btw| hac| ftj| fsg| ujn|