|代码页获取对应DataGrid的行的数据

代码页获取对应DataGrid的行的数据
<asp:BoundColumn Visible=\"False\" DataField=\"tr_class_id\" HeaderText=\"id\"></asp:BoundColumn>
<asp:BoundColumn DataField=\"tr_class_name\" HeaderText=\"班名称\"></asp:BoundColumn>
<asp:BoundColumn DataField=\"tr_plan_id\" HeaderText=\"计划编号\"></asp:BoundColumn>
<asp:BoundColumn DataField=\"tr_type_name\" HeaderText=\"培训类别\"></asp:BoundColumn>
<asp:BoundColumn DataField=\"tr_class_type\" HeaderText=\"办班形式\"></asp:BoundColumn>
<asp:BoundColumn DataField=\"tr_class_address\" HeaderText=\"办班地点\"></asp:BoundColumn>
<asp:TemplateColumn HeaderText=\"开始时间\">
<ItemTemplate>
<asp:Label ID=\"one\" runat=\"server\" Text='<%# Convert.ToDateTime(DataBinder.Eval(Container \"DataItem.tr_class_stime\")).ToShortDateString() %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText=\"结束时间\">
<ItemTemplate>
<asp:Label ID=\"two\" runat=\"server\" Text='<%# Convert.ToDateTime(DataBinder.Eval(Container \"DataItem.tr_class_etime\")).ToShortDateString() %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField=\"BanZhuRen\" HeaderText=\"班主任\"></asp:BoundColumn>
<asp:BoundColumn DataField=\"TianShu\" HeaderText=\"天数\"></asp:BoundColumn>
<asp:BoundColumn DataField=\"RenShu\" HeaderText=\"人数\"></asp:BoundColumn>
<asp:TemplateColumn HeaderText=\"班级状态\">
<ItemTemplate>
<asp:Label ID=\"status\" runat=\"server\" Text='<%# (DataBinder.Eval(Container \"DataItem.tr_class_status\").ToString() == \"1\") ? \"在读\" : \"结业\"%>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
----------------------------------------------------------------------------------
foreach (DataGridItem dgi in dgClass.Items)
{
CheckBox cb = (CheckBox)dgi.FindControl(\"chkbox\");
if (cb.Checked)
{
LblID.Text = dgi.Cells[1
.Text;
PlanName.Text = dgi.Cells[2
.Text;
DropDownList1.SelectedValue = https://mparticle.uc.cn/api/dgi.Cells[3
.Text;
DropDownList3.SelectedValue = https://mparticle.uc.cn/api/dgi.Cells[13
.Text;
DropDownList4.SelectedValue = https://mparticle.uc.cn/api/dgi.Cells[5
.Text;
TxtAdd.Text = dgi.Cells[6
.Text;
Txtstime.Text = (dgi.Cells[7
.FindControl(\"one\") as Label).Text;
Txtetime.Text = (dgi.Cells[8
.FindControl(\"two\") as Label).Text;
//txtStaffName.Text=dgi.Cells[9
.Text;
TxtStaff.Text = dgi.Cells[14
.Text;
txtTextBooks.Text = dgi.Cells[15
.Text.Trim();
string url = ((HyperLink)(dgi.Cells[16
.FindControl(\"hlPlanPath\"))).NavigateUrl;
lblPlanPath.Text = url.Substring(url.LastIndexOf(\"\\\\\") + 1);
DropDownList2.SelectedValue = https://mparticle.uc.cn/api/((dgi.Cells[8
.FindControl(\"status\") as Label).Text==\"在读\")?\"1\":\"0\";
break;
【|代码页获取对应DataGrid的行的数据】
- 拼多多|拼多多推出PC网页版商城,或只为缓解增长焦虑
- PHP|如何降低用户关注的非必要页面的权重传递?
- 拼多多|拼多多网页版终于上线,最大短板补足了吗?
- 苹果|居然用了7年!美队扮演者放弃iPhone 6s:舍不得主页键
- 开源软件|嵌入式开发:技巧和窍门——引导加载程序跳转到应用程序代码
- 无悔华夏欧冶子怎么获得?无悔华夏欧冶子获取方法介绍
- Java|网站关键词seo排名在百度前三页怎么优化?
- 时隔19年的代码更新 欧空局“火星快车”将获得软件升级
- B轮融资|代码注释的艺术,优秀代码真的不需要注释吗?
- 诺基亚|听人话生成代码厉害了,国内首个自然语言生成方法级代码的AI
