<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moko_03_25</author_name>
  <author_url>https://blog.hatena.ne.jp/moko_03_25/</author_url>
  <blog_title>ゲームエフェクトデザイナーのブログ | A Real-Time VFX Artist's Blog</blog_title>
  <blog_url>https://effect.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>DataGridViewに「No」という列があったとして、 // 行数をカウントint count = RowsCount(); // Noを振り直す for (int i = 0; i &lt; count; i++) { dgv[0, i].Value = i; } とか、もしくは‥ // Noを振り直すint i = 0; foreach (ar item in dgv.Rows) { dgv[0, i].Value = i; i++ } とかで可能な訳ですが、これはあくまでDataGridVIew上の並び順で値を0から入力していきます。 例えば列ヘッダーをクリックして昇順ソートした状態で実行…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feffect.hatenablog.com%2Fentry%2F2018%2F10%2F06%2F204938&quot; title=&quot;C# DataGridViewの列の値に0から始まる番号を入力する - ゲームエフェクトデザイナーのブログ | A Real-Time VFX Artist&amp;#39;s 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>2018-10-06 20:49:38</published>
  <title>C# DataGridViewの列の値に0から始まる番号を入力する</title>
  <type>rich</type>
  <url>https://effect.hatenablog.com/entry/2018/10/06/204938</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
