<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>manymanytips</author_name>
  <author_url>https://blog.hatena.ne.jp/manymanytips/</author_url>
  <blog_title>ぷろぐらまさんの忘れないようにメモ書き</blog_title>
  <blog_url>https://manymanytips.hatenadiary.org/</blog_url>
  <categories>
    <anon>ASP.NET</anon>
  </categories>
  <description>選択行の各セルの値を取得するためには、 GridView1.SelectedRow.Cells[0].Textといったように、 通常、インデックス指定しかできないのだが、 同じ内容の行がGridView上に存在しないのであれば、 SelectedDataKeyプロパティを使うと、 インデックスの他に、要素名を指定した値の取得が可能。 GridView1.SelectedDataKey.Values[0] または GridView1.SelectedDataKey.Values[&quot;要素名&quot;] これは便利！ASP.NET GridViewで選択した行の値を取得する方法 ButtonField使用 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmanymanytips.hatenadiary.org%2Fentry%2F20111118%2Fp1&quot; title=&quot;GridViewで選択行の値を取得する方法  - ぷろぐらまさんの忘れないようにメモ書き&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>2011-11-18 00:00:02</published>
  <title>GridViewで選択行の値を取得する方法 </title>
  <type>rich</type>
  <url>https://manymanytips.hatenadiary.org/entry/20111118/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
