FineUI 官方论坛
标题:
grid控件用到TemplateField的列值都是一样BUG
[打印本页]
作者:
野鹰工作室
时间:
2013-1-12 11:06
标题:
grid控件用到TemplateField的列值都是一样BUG
[attach]1624[/attach]
[attach]1625[/attach]
大家看都是用到
<
Columns
>
<
x
:
TemplateField
Width
=
"80px"
>
<
ItemTemplate
>
<
asp
:
Label
ID
=
"Label1"
runat
=
"server"
Text
=
'<%# Container.DataItemIndex + 1 %>'
>
</
asp
:
Label
>
</
ItemTemplate
>
</
x
:
TemplateField
>
<
x
:
BoundField
Width
=
"100px"
DataField
=
"Name"
DataFormatString
=
"{0}"
HeaderText
=
"姓名"
/>
<
x
:
TemplateField
Width
=
"60px"
HeaderText
=
"性别"
>
<
ItemTemplate
>
<
asp
:
DropDownList
runat
=
"server"
ID
=
"ddlGender"
>
</
asp
:
DropDownList
>
</
ItemTemplate
>
</
x
:
TemplateField
>
<
x
:
BoundField
Width
=
"60px"
DataField
=
"EntranceYear"
HeaderText
=
"入学年份"
/>
<
x
:
CheckBoxField
Width
=
"60px"
RenderAsStaticField
=
"true"
DataField
=
"AtSchool"
HeaderText
=
"是否在校"
/>
<
x
:
HyperLinkField
HeaderText
=
"所学专业"
DataToolTipField
=
"Major"
DataTextField
=
"Major"
DataTextFormatString
=
"{0}"
DataNavigateUrlFields
=
"Major"
DataNavigateUrlFormatString
=
"http://gsa.ustc.edu.cn/search?q={0}"
DataNavigateUrlFieldsEncode
=
"true"
Target
=
"_blank"
ExpandUnusedSpace
=
"True"
/>
<
x
:
TemplateField
HeaderText
=
"分组"
Width
=
"100px"
>
<
ItemTemplate
>
<
asp
:
TextBox
ID
=
"tbxGroupName"
runat
=
"server"
Width
=
"80px"
TabIndex
=
'<%# Container.DataItemIndex + 10 %>'
Text
=
'<%# Eval("Group") %>'
>
</
asp
:
TextBox
>
</
ItemTemplate
>
</
x
:
TemplateField
>
</
Columns
>
都是用
</
ItemTemplate
>用这个模板,所有值都是模板5的
作者:
sanshi
时间:
2013-1-12 12:54
看置顶文章,是Web.config配置问题。
作者:
sanshi
时间:
2013-1-12 12:54
看置顶文章,是Web.config配置问题。
http://fineui.com/bbs/forum.php? ... &extra=page%3D1
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4