<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>souta-bot</author_name>
  <author_url>https://blog.hatena.ne.jp/souta-bot/</author_url>
  <blog_title>souta-bot log</blog_title>
  <blog_url>https://souta-bot.hatenadiary.org/</blog_url>
  <categories>
    <anon>c#</anon>
  </categories>
  <description>仕事でC#のDataGridViewを使う必要がある度にほぼ1から再入門してる気がするのでメモ。 CurrentCellへの変更を反映 例えばmyGridView[0, 0].Value = &quot;true&quot;てな感じでDataGridViewComboBoxCellの値を変更する場合、変更したセルがCurrentCellだとフォーカスが外れるまで変更が描画されない。 それを避けるには以下のようにする。 //CurrentCellへの変更を反映 myGrid.CurrentCell = null; Excelライクな挙動 ヘッダクリック時の列、行選択の挙動をExcelライクにする。 private …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsouta-bot.hatenadiary.org%2Fentry%2F20081101%2F1225538214&quot; title=&quot;DataGridViewメモ(0) - souta-bot log&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>2008-11-01 20:16:54</published>
  <title>DataGridViewメモ(0)</title>
  <type>rich</type>
  <url>https://souta-bot.hatenadiary.org/entry/20081101/1225538214</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
