<?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>DataGridViewで、ある列は小数点第一位までの入力を許可させ、それ以外の値は認めないという要件を満たす方法です。 ちょっと悩んだんですが、まずfloatにパースできるかどうか判断します。 floatにパースできるようなら、10を掛け、それがintにパースできるかどうか判断します。 パースできないなら、小数点第二位以上の値が入っていることになるので、セルを移動させません。 というのが、以下のコードになります。(C#) // 不正な場合、入力フォーカスを移動させない(小数点第一位まで可) float f; int i; e.Cancel = (!float.TryParse(val, ou…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2014%2F01%2F13%2F005600&quot; title=&quot;(.Net)小数点第一位まで入力可という入力チェック - 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>2014-01-13 00:56:00</published>
  <title>(.Net)小数点第一位まで入力可という入力チェック</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2014/01/13/005600</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
