<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>.Net開発</anon>
  </categories>
  <description>(.Net)DataGridViewでの入力チェックはCellValidatingだけではダメの続きとなります。 前回の最後で、「この場合だと、一つでも入力エラーとなれば、正しい値を入れるまで何もできない(フォームを閉じることさえ)ので、実装には工夫が必要」と書きました。 今回はその工夫の１つで、間違った入力をされたら、その行は消すという方法です。 列数が1つとか2つかの場合には有効だと思います。 実際に行を消すのは RowValidated イベントで行っています。 厄介だったのは、Row.Delete() のときにまた、RowValidated イベントが走ってしまうという点です。 これを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2009%2F02%2F05%2F223000&quot; title=&quot;(.Net)DataGridViewでの入力チェックに引っ掛かったら行を消す方法 - 3流プログラマのメモ書き&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>2009-02-05 22:30:00</published>
  <title>(.Net)DataGridViewでの入力チェックに引っ掛かったら行を消す方法</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2009/02/05/223000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
