<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s51517765</author_name>
  <author_url>https://blog.hatena.ne.jp/s51517765/</author_url>
  <blog_title>プログラミング素人のはてなブログ</blog_title>
  <blog_url>https://s51517765.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>いろいろはまった C#においてExcellのように扱えるオブジェクトdataGridViewですが、扱いにはクセがあります（仕様であり個人の感想でしかなく、仕様嫁）。 セルの値を数値解釈（変換）できるかどうか セルに値を入力したときは基本的に文字列として受け取ります。 これをのちのち数値変換するので数値解釈（変換）できないときはその入力をキャンセルしたい、ということを考えました。入力があったとき発動するアクションを設定したいので、似たような下記3つのアクションのうちここでは3番になります。 1番は入力前、セル選択時に発動するので該当セルが空白の状態で動作します。 2番は単独ではこれでも動きます…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs51517765.hatenadiary.jp%2Fentry%2F2021%2F09%2F06%2F073000&quot; title=&quot;C# dataGridViewとキャストと型変換のあれこれ - プログラミング素人のはてなブログ&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-09-06 07:30:00</published>
  <title>C# dataGridViewとキャストと型変換のあれこれ</title>
  <type>rich</type>
  <url>https://s51517765.hatenadiary.jp/entry/2021/09/06/073000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
