数据库字段 :PassState varchar(50)
GridvIew绑定的字段必须为string ,否则无法正常的显示
GridvIew.Columns 绑定 RepositoryItemRadioGroup 代码如下:
RepositoryItemRadioGroup Group = new RepositoryItemRadioGroup();
gridView1.Columns["PassState"].ColumnEdit = Group;
Group.Items.AddRange(new RadioGroupItem[] {
new RadioGroupItem("0", "拒绝", true),
new RadioGroupItem("1", "待定", true),
new RadioGroupItem("2", "通过", true),
});
本文介绍如何在GridView中绑定RepositoryItemRadioGroup,并展示了一个具体的实现案例。为了正确显示数据库中的PassState字段,需要确保该字段的数据类型为字符串。文中详细说明了设置RadioGroupItem的具体步骤。
758

被折叠的 条评论
为什么被折叠?



