{"id":2273,"date":"2016-12-19T11:49:15","date_gmt":"2016-12-19T02:49:15","guid":{"rendered":"http:\/\/ocworld.net\/?p=2273"},"modified":"2024-12-13T15:02:20","modified_gmt":"2024-12-13T06:02:20","slug":"devexpress%ec%97%90%ec%84%9c-gridview%ec%9d%98-%ed%96%89-%ec%83%89%ea%b9%94-%eb%b0%94%ea%be%b8%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.ocworld.net\/?p=2273","title":{"rendered":"DevExpress\uc5d0\uc11c GridView\uc758 \ud589 \uc0c9\uae54 \ubc14\uafb8\uae30"},"content":{"rendered":"<p>DevExpress\uc5d0\uc11c GridView\uc758 \ud589\uc758 \uc0c9\uc744 \ubc14\uafb8\ub294 \uac83\ub294 \ubc29\ubc95\uc774\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)<br \/>\n{<br \/>\nfor (int i = 0; i &lt; dataSet1.Tables[0].Rows.Count; i++)<br \/>\n{<br \/>\nif (IsDisposal(gridView1, e.RowHandle))<br \/>\ne.Appearance.BackColor = Color.Red;<br \/>\n}<br \/>\n}<\/p>\n<p>private bool IsDisposal(DevExpress.XtraGrid.Views.Grid.GridView gridView1, int row)<br \/>\n{<br \/>\nstring val = Convert.ToString(gridView1.GetRowCellValue(row, &#8220;Disposal&#8221;));<br \/>\nreturn (val == &#8220;True&#8221;);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DevExpress\uc5d0\uc11c GridView\uc758 \ud589\uc758 \uc0c9\uc744 \ubc14\uafb8\ub294 \uac83\ub294 \ubc29\ubc95\uc774\ub2e4. &nbsp; private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e) { for (int i = 0; i &lt; dataSet1.Tables[0].Rows.Count; i++) { if (IsDisposal(gridView1, e.RowHandle)) e.Appearance.BackColor = Color.Red; } } private bool IsDisposal(DevExpress.XtraGrid.Views.Grid.GridView gridView1, int row) { string val = Convert.ToString(gridView1.GetRowCellValue(row, &#8220;Disposal&#8221;)); return (val == &#8220;True&#8221;); }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[199],"class_list":["post-2273","post","type-post","status-publish","format-standard","hentry","category-info","tag-devexpress"],"_links":{"self":[{"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/posts\/2273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2273"}],"version-history":[{"count":1,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/posts\/2273\/revisions"}],"predecessor-version":[{"id":2274,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=\/wp\/v2\/posts\/2273\/revisions\/2274"}],"wp:attachment":[{"href":"https:\/\/www.ocworld.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ocworld.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}