{"id":1135,"date":"2009-05-01T08:08:02","date_gmt":"2009-04-30T23:08:02","guid":{"rendered":"http:\/\/gigasmegas.com\/?p=1135"},"modified":"2009-05-01T08:08:10","modified_gmt":"2009-04-30T23:08:10","slug":"vbnet-tips-flexgridnet%e3%81%abbind%e3%81%97%e3%81%9fdatatable%e3%81%ae%e4%bb%bb%e6%84%8f%e8%a1%8c%e3%81%abdatarow%e3%82%92%e8%bf%bd%e5%8a%a0","status":"publish","type":"post","link":"http:\/\/gigasmegas.com\/?p=1135","title":{"rendered":"VB.NET Tips FlexGrid.NET\u306bBind\u3057\u305fDataTable\u306e\u4efb\u610f\u884c\u306bDataRow\u3092\u8ffd\u52a0"},"content":{"rendered":"<p><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/rokuz.com\/?p=1135');\"  href=\"http:\/\/rokuz.com\/?p=1135\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rokuz.com\/wp-content\/uploads\/2009\/05\/snag-0149.png\" alt=\"DataTable\u5185\u306e\u4efb\u610f\u884c\u306bDataRow\uff08\u65b0\u898f\u884c\uff09\u3092\u8ffd\u52a0\u3059\u308b\" title=\"DataTable\u5185\u306e\u4efb\u610f\u884c\u306bDataRow\uff08\u65b0\u898f\u884c\uff09\u3092\u8ffd\u52a0\u3059\u308b\" width=\"371\" height=\"245\" class=\"alignnone size-full wp-image-1136\" \/><\/a><\/p>\n<address>photo by <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.flickr.com\/photos\/taschapascha\/');\"  href=\"http:\/\/www.flickr.com\/photos\/taschapascha\/\">Taschapascha<\/a><\/address>\n<p>FlexGrid.NET\u306bDataBind\u3055\u308c\u305fDataTable\u5185\u306e\u4efb\u610f\u884c\u306bDataRow\uff08\u65b0\u898f\u884c\uff09\u3092\u8ffd\u52a0\u3059\u308b\u969b\u3001<br \/>\n\u300c\u540c\u6642\u5b9f\u884c\u9055\u53cd\uff1aUpdateCommand \u306b\u3088\u3063\u3066\u3001\u51e6\u7406\u4e88\u5b9a\u306e\uff11\u30ec\u30b3\u30fc\u30c9\u306e\u3046\u3061\uff10\u4ef6\u304c\u51e6\u7406\u3055\u308c\u307e\u3057\u305f\u3002\u300d<br \/>\n\u3053\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3001\u65b0\u898f\u884c\u3092\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u540c\u6642\u5b9f\u884c\u9055\u53cd\u30a8\u30e9\u30fc\u3068\u3044\u3046\u306e\u304c\u3001DataAdapter\u306b\u8a2d\u5b9a\u3057\u305fUpdateCommand\u306eWHERE\u53e5\u306b\u6307\u5b9a\u3057\u305f\u5024\u3067\u884c\u304c\u53c2\u7167\u3067\u304d\u306a\u3044\u3068\u304d\u306a\u3069\u306b\u51fa\u529b\u3055\u308c\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3068\u304d\u306e\u30b3\u30fc\u30c9\u304c\u4e0b\u8a18\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\nDim row As DataRow\r\ndim InsertRow as Integer = 2\r\nrow = DataS.Tables(&quot;hoge&quot;).NewRow()\r\n\r\n' hoge\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u306eInsertRow\u306e\u4f4d\u7f6e\u306brow\u30c7\u30fc\u30bf\u30ed\u30a6\u3092\u633f\u5165\r\nDataS.Tables(&quot;cust&quot;).Rows.InsertAt(row, InsertRow)\r\n\r\n' hoge\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066\u884c\u308f\u308c\u305f\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\nDataS.Tables(&quot;cust&quot;).AcceptChanges()\r\n<\/pre>\n<p>FlexGrid.NET\u306e\u4efb\u610f\u306e\u4f4d\u7f6e\u306b\u306f\u3001\u633f\u5165\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306fUpdate\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u691c\u7d22\u3057\u3066\u307f\u308b\u3068\u3001DataGrid\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u4f8b\u3067\u306f\u3001AcceptChanges\u3092\u884c\u308f\u306a\u3044\u3068\u3001\u6700\u4e0b\u884c\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3057\u307e\u3046\u306a\u3069\u306e\u60c5\u5831\u3092\u307f\u3064\u3051\u305f\u306e\u3067\u3059\u304c\u3001FlexGrid.NET\u3068\u306f\u52d5\u4f5c\u304c\u5c11\u3057\u9055\u3046\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u8a66\u3057\u306b\u3001AcceptChanges\u3092\u306f\u305a\u3057\u3066\u307f\u308b\u3068\u306a\u3093\u306e\u554f\u984c\u3082\u306a\u304f\u3001\u6b63\u5e38\u306b\u52d5\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\nDim row As DataRow\r\ndim InsertRow as Integer = 2\r\nrow = DataS.Tables(&quot;hoge&quot;).NewRow()\r\n\r\n' hoge\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u306eInsertRow\u306e\u4f4d\u7f6e\u306brow\u30c7\u30fc\u30bf\u30ed\u30a6\u3092\u633f\u5165\r\nDataS.Tables(&quot;cust&quot;).Rows.InsertAt(row, InsertRow)\r\n' hoge\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066\u884c\u308f\u308c\u305f\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\u306f\u3059\u3067\u306b\u3055\u308c\u3066\u308b\u306e\u304b\u306a\u3002\r\n<\/pre>\n<p>DataBind\u3055\u308c\u305fFlexGrid.NET\u5074\u3067\u3001InsertAt\u304c\u884c\u308f\u308c\u305f\u3068\u304d\u306bAcceptChanges\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>photo by Taschapascha FlexGrid.NET\u306bDataBind\u3055\u308c\u305fDataTable\u5185\u306e\u4efb\u610f\u884c\u306bDataRow\uff08\u65b0\u898f\u884c\uff09\u3092\u8ffd\u52a0\u3059\u308b\u969b\u3001 \u300c\u540c\u6642\u5b9f\u884c\u9055\u53cd\uff1aUpdateCommand \u306b\u3088\u3063\u3066\u3001\u51e6\u7406 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[303,25],"tags":[306,272,357,358,356,316,359,254,304],"class_list":["post-1135","post","type-post","status-publish","format-standard","hentry","category-vbnet","category-computer","tag-net","tag-272","tag-dataadapter","tag-datarow","tag-datatable","tag-flexgrid","tag-insertat","tag-tips","tag-vb"],"_links":{"self":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1135"}],"version-history":[{"count":2,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1135\/revisions"}],"predecessor-version":[{"id":1138,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1135\/revisions\/1138"}],"wp:attachment":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1135"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}