{"id":443,"date":"2015-01-13T19:55:34","date_gmt":"2015-01-13T10:55:34","guid":{"rendered":"https:\/\/prg.waou.biz\/?p=443"},"modified":"2018-03-03T08:12:47","modified_gmt":"2018-03-02T23:12:47","slug":"checkboxcell%e5%9e%8b%e3%82%bb%e3%83%ab%e3%81%ae%e5%80%a4%e3%81%a7dataview%e3%81%aerowfilter%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%97%e3%81%a6%e3%81%84%e3%82%8b%e5%a0%b4%e5%90%88%e3%80%81checkboxcell","status":"publish","type":"post","link":"https:\/\/prg.waou.biz\/?p=443","title":{"rendered":"CheckBoxCell\u578b\u30bb\u30eb\u306e\u5024\u3067DataView\u306eRowFilter\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u5834\u5408\u3001CheckBoxCell\u578b\u30bb\u30eb\u306e\u5024\u304c\u5909\u66f4\u3055\u308c\u305f\u3068\u540c\u6642\u306bFilter\u3092\u304b\u3051\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\uff08\uff12\uff09\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u578b\u30bb\u30eb\u306e\u5024\u306e\u78ba\u5b9a<br \/>\n\u30bb\u30eb\u578b\u306b\u95a2\u308f\u3089\u305a\u3001\u5024\u3092\u5909\u66f4\u3057\u305f\u5f8c\u306b\u4ed6\u306e\u884c\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u5024\u304c<br \/>\n\u78ba\u5b9a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3054\u5e0c\u671b\u306e\u52d5\u4f5c\u306b\u3059\u308b\u306b\u306f\u3001CellEditedFormattedValueChanged\u30a4\u30d9\u30f3\u30c8\u3067<br \/>\n\u660e\u793a\u7684\u306b\u5024\u3092\u78ba\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u691c\u8a0e\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u5b58\u3058\u307e\u3059\u3002<\/p>\n<p>\u304a\u624b\u6570\u3068\u306f\u5b58\u3058\u307e\u3059\u304c\u3001\u4e0b\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3054\u53c2\u8003\u306b\u3057\u3066<br \/>\n\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u30bb\u30eb\u578b\u306b\u95a2\u308f\u3089\u305a\u3001\u5024\u3092\u5909\u66f4\u3057\u305f\u5f8c\u306b\u4ed6\u306e\u884c\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u5024\u304c<br \/>\n\u78ba\u5b9a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3054\u5e0c\u671b\u306e\u52d5\u4f5c\u306b\u3059\u308b\u306b\u306f\u3001CellEditedFormattedValueChanged\u30a4\u30d9\u30f3\u30c8\u3067<br \/>\n\u660e\u793a\u7684\u306b\u5024\u3092\u78ba\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u691c\u8a0e\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u5b58\u3058\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" >using System;\r\nusing System.Collections.Generic;\r\nusing\r\nSystem.ComponentModel;\r\nusing System.Data;\r\nusing System.Drawing;\r\nusing\r\nSystem.Linq;\r\nusing System.Text;\r\nusing System.Windows.Forms;\r\nusing\r\nGrapeCity.Win.MultiRow;\r\n\r\nnamespace M150112002\r\n{\r\npublic partial\r\nclass Form1 : Form\r\n{\r\npublic Form1()\r\n\r\n{\r\nInitializeComponent();\r\n}\r\n\r\nprivate void\r\nForm1_Load(object sender, EventArgs e)\r\n{\r\n\/\/\r\n\u30c7\u30fc\u30bf\u306e\u4f5c\u6210\r\nDataTable dt = new DataTable(\"TEST\");\r\n\r\ndt.Columns.Add(\"ColumnA\", typeof(Boolean));\r\n\r\ndt.Columns.Add(\"ColumnB\", typeof(String));\r\ndt.Rows.Add(false,\r\n\"B0\");\r\ndt.AcceptChanges();\r\nDataView dv =\r\ndt.DefaultView;\r\ndv.RowFilter = \"ColumnA =\r\n'False'\";\r\n\/\/dv.RowFilter = \"ColumnB = 'B0'\";\r\n\r\n\/\/ \u30bb\u30eb\u578b\u306e\u4f5c\u6210\r\nCheckBoxCell checkCell = new\r\nCheckBoxCell();\r\ncheckCell.Name = \"checkCell\";\r\n\r\ncheckCell.DataField = \"ColumnA\";\r\nTextBoxCell textCell = new\r\nTextBoxCell();\r\ntextCell.Name = \"textCell\";\r\n\r\ntextCell.DataField = \"ColumnB\";\r\n\r\n\/\/ MulitRow\u306e\u8a2d\u5b9a\r\n\r\ngcMultiRow1.AllowUserToAddRows = false;\r\ngcMultiRow1.Template =\r\nTemplate.CreateGridTemplate(new Cell[] { checkCell, textCell });\r\n\r\ngcMultiRow1.DataSource = dt;\r\n\r\ngcMultiRow1.CellEditedFormattedValueChanged += new\r\n\r\nEventHandler&lt;CellEditedFormattedValueChangedEventArgs&gt;(gcMultiRow1_CellEditedFormattedValueChanged);\r\n\r\n}\r\n\r\nprivate void gcMultiRow1_CellEditedFormattedValueChanged(object\r\nsender, CellEditedFormattedValueChangedEventArgs e)\r\n{\r\n\r\nif (e.CellName == \"checkCell\")\r\n{\r\n\/\/\r\n\u5909\u66f4\u306e\u78ba\u5b9a\r\ngcMultiRow1.EndEdit();\r\n\r\nEditingActions.CommitRow.Execute(gcMultiRow1);\r\n}\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uff08\uff12\uff09\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u578b\u30bb\u30eb\u306e\u5024\u306e\u78ba\u5b9a \u30bb\u30eb\u578b\u306b\u95a2\u308f\u3089\u305a\u3001\u5024\u3092\u5909\u66f4\u3057\u305f\u5f8c\u306b\u4ed6\u306e\u884c\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u5024\u304c \u78ba\u5b9a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u3054\u5e0c\u671b\u306e\u52d5\u4f5c\u306b\u3059\u308b\u306b\u306f\u3001CellEditedFormattedValueChange [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","_lightning_design_setting":[],"footnotes":""},"categories":[12],"tags":[],"class_list":["post-443","post","type-post","status-publish","format-standard","hentry","category-multirow"],"_links":{"self":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=443"}],"version-history":[{"count":3,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/443\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/443\/revisions\/780"}],"wp:attachment":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}