{"id":381,"date":"2014-10-18T03:51:12","date_gmt":"2014-10-17T18:51:12","guid":{"rendered":"https:\/\/prg.waou.biz\/?p=381"},"modified":"2018-03-03T08:28:18","modified_gmt":"2018-03-02T23:28:18","slug":"columnheadersection%e3%81%ab%e9%85%8d%e7%bd%ae%e3%81%97%e3%81%9f%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%ae%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e5%8f%96%e5%be%97","status":"publish","type":"post","link":"https:\/\/prg.waou.biz\/?p=381","title":{"rendered":"columnHeaderSection\u306b\u914d\u7f6e\u3057\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30a4\u30d9\u30f3\u30c8\u53d6\u5f97"},"content":{"rendered":"<p>\u3054\u5e0c\u671b\u306e\u52d5\u4f5c\u306b\u3059\u308b\u306b\u306f\u3001\u5f0a\u793eWeb\u30b5\u30a4\u30c8\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u4e0b\u8a18<br \/>\n\u306e\u30ca\u30ec\u30c3\u30b8\u6587\u66f8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001ColumnHeaderSection\u306e<br \/>\nReadOnly\u30d7\u30ed\u30d1\u30c6\u30a3\u3068Selectable\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u305d\u308c\u305e\u308c\u3001&#8221;false&#8221;\u3068<br \/>\n&#8220;true&#8221;\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ca\u30ec\u30c3\u30b8\u30d9\u30fc\u30b9\uff08\u6587\u66f8\u756a\u53f7\uff1a34330\uff09<br \/>\n\u5217\u30d8\u30c3\u30c0\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u914d\u7f6e\u3057\u305f\u30bb\u30eb\u3092\u7de8\u96c6\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a<br \/>\nhttp:\/\/www.grapecity.com\/tools\/support\/kb\/?id=34330<\/p>\n<p>\u307e\u305f\u3001\u5024\u306e\u8a2d\u5b9a\u3084\u53d6\u5f97\u306b\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a72\u5f53\u3059\u308b\u30bb\u30eb\u306eValue<br \/>\n\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u5b58\u3058\u307e\u3059\u3002<\/p>\n<p>gcMultiRow1.ColumnHeaders[0].Cells[&#8220;chCell2&#8221;].Value = true;<br \/>\ngcMultiRow1.ColumnHeaders[0].Cells[&#8220;chCell3&#8221;].Value = 123;<\/p>\n<p>\u52d5\u4f5c\u78ba\u8a8d\u7528\u306b\u4f5c\u6210\u3057\u305f\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u306b\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<br \/>\n\u3054\u53c2\u8003\u306b\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u3010\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3011<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \" >using System;\r\nusing System.Collections.Generic;\r\nusing System.ComponentModel;\r\nusing System.Data;\r\nusing System.Drawing;\r\nusing System.Linq;\r\nusing System.Text;\r\nusing System.Windows.Forms;\r\nusing GrapeCity.Win.MultiRow;\r\n\r\nnamespace M141017001\r\n{\r\npublic partial class Form1 : Form\r\n{\r\npublic Form1()\r\n{\r\nInitializeComponent();\r\nInitializeMultiRow();\r\n}\r\n\r\nprivate void InitializeMultiRow()\r\n{\r\n\/\/ \u5217\u30d8\u30c3\u30c0\u306e\u4f5c\u6210\r\nColumnHeaderSection chSection = new ColumnHeaderSection();\r\nCornerHeaderCell chCell1 = new CornerHeaderCell();\r\nchCell1.Name = \"chCell1\";\r\nchCell1.Location = new Point(0, 0);\r\nchCell1.Size = new Size(30, 20);\r\nCheckBoxCell chCell2 = new CheckBoxCell();\r\nchCell2.Name = \"chCell2\";\r\nchCell2.Location = new Point(chCell1.Width, 0);\r\nchCell2.Size = new Size(60, 20);\r\nNumericUpDownCell chCell3 = new NumericUpDownCell();\r\nchCell3.Name = \"chCell3\";\r\nchCell3.Location = new Point(chCell1.Width + chCell2.Width, 0);\r\nchCell3.Size = new Size(60, 20);\r\nchSection.Cells.AddRange(new Cell[] { chCell1, chCell2, chCell3 });\r\nchSection.Height = chCell1.Height;\r\nchSection.Width = chCell1.Width + chCell2.Width + chCell3.Width;\r\nchSection.ReadOnly = false; \/\/ &lt;== \u3053\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002\r\nchSection.Selectable = true; \/\/ &lt;== \u3053\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002\r\n\r\n\/\/ \u884c\u306e\u4f5c\u6210\r\nRowHeaderCell rhCell1 = new RowHeaderCell();\r\nrhCell1.Name = \"rhCell1\";\r\nrhCell1.Location = new Point(0, 0);\r\nrhCell1.Size = new Size(30, 20);\r\nTextBoxCell textBoxCell1 = new TextBoxCell();\r\ntextBoxCell1.Name = \"textBoxCell1\";\r\ntextBoxCell1.Location = new Point(rhCell1.Width, 0);\r\ntextBoxCell1.Size = new Size(60, 20);\r\nTextBoxCell textBoxCell2 = new TextBoxCell();\r\ntextBoxCell2.Name = \"textBoxCell2\";\r\ntextBoxCell2.Location = new Point(rhCell1.Width + textBoxCell1.Width, 0);\r\ntextBoxCell2.Size = new Size(60, 20);\r\n\r\n\/\/ \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4f5c\u6210\r\nTemplate template1 = new Template();\r\ntemplate1.Width = chSection.Width;\r\ntemplate1.ColumnHeaders.Add(chSection);\r\ntemplate1.Row.Height = rhCell1.Height;\r\ntemplate1.Row.Cells.AddRange(new Cell[] { rhCell1, textBoxCell1, textBoxCell2 });\r\n\r\n\/\/ MultiRow\u306e\u8a2d\u5b9a\r\ngcMultiRow1.Template = template1;\r\ngcMultiRow1.ColumnHeaders[0].Cells[\"chCell2\"].Value = true;\r\ngcMultiRow1.ColumnHeaders[0].Cells[\"chCell3\"].Value = 123;\r\n}\r\n}\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u3054\u5e0c\u671b\u306e\u52d5\u4f5c\u306b\u3059\u308b\u306b\u306f\u3001\u5f0a\u793eWeb\u30b5\u30a4\u30c8\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u4e0b\u8a18 \u306e\u30ca\u30ec\u30c3\u30b8\u6587\u66f8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001ColumnHeaderSection\u306e ReadOnly\u30d7\u30ed\u30d1\u30c6\u30a3\u3068Selectable\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u305d\u308c\u305e\u308c\u3001&#038;#82 [&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-381","post","type-post","status-publish","format-standard","hentry","category-multirow"],"_links":{"self":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/381","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=381"}],"version-history":[{"count":3,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":800,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=\/wp\/v2\/posts\/381\/revisions\/800"}],"wp:attachment":[{"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prg.waou.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}