<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gomana2</author_name>
  <author_url>https://blog.hatena.ne.jp/gomana2/</author_url>
  <blog_title>ごまなつ Blog</blog_title>
  <blog_url>https://gomana2.hatenablog.jp/</blog_url>
  <categories>
    <anon>技術系</anon>
  </categories>
  <description>.NETのフォームアプリにおいて、ListViewの中に編集不能な項目を表示する必要がありました。具体的には、ListViewに表示した項目でチェックボックスが入っているものに対してのみ操作をする状況で、その中に編集不能な項目を表示する必要がありました。ListViewには、1つの項目に対するEnabledプロパティがありません。どうやって実現したかの記録です。 結論 変更イベントが起きたら、変更前の状態に強制的に設定する。 private void listView_ItemChecked(object sender, ItemCheckedEventArgs e) { if (listVi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgomana2.hatenablog.jp%2Fentry%2F2019%2F06%2F28%2F160855&quot; title=&quot;.NET フォームアプリ ListViewに編集不能な項目を表示したい - ごまなつ Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-28 16:08:55</published>
  <title>.NET フォームアプリ ListViewに編集不能な項目を表示したい</title>
  <type>rich</type>
  <url>https://gomana2.hatenablog.jp/entry/2019/06/28/160855</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
