Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

2011-08-28から1日間の記事一覧

DataSourceをバインドしたGridViewでコードを文言で表示する

DataSourceをバインドしたGridViewでコードを文言で表示する方法を紹介します。ここでは、hogeが1のときを"Foo"、2のときを"Bar"で表示するものとして説明します。 ソースコード aspx aspxのソースコードにテンプレートフィールドを記述します。 <asp:TemplateField HeaderText="ほげ"> <ItemTemplate> </itemtemplate></asp:templatefield>