网格视图单元

编程入门 行业动态 更新时间:2024-10-23 01:59:24
本文介绍了网格视图单元的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在asp中创建了一个Grid View,并通过Template字段放置了一个下拉列表,它在同一行中包含其他两列. 我的需要: 当我更改该下拉列表的索引时,我想获取同一行中其他列的值,并且我想使用该值来执行某些功能. 请帮助我 Kishore R

I Created a Grid View in asp, and i put a dropdownlist via Template field.It contains other two columns in the same row. My need: When i changed the index of that dropdownlist, i want to get the value of other columns of the same row.and i want to use that value to perform some functions. Kindly Help me Kishore R

推荐答案

protected void drpstatus_SelectedIndexChanged(object sender, EventArgs e) { DropDownList drpstatus = (DropDownList)sender; GridViewRow row = (GridViewRow)drpstatus.Parent.Parent; int idx = row.RowIndex; }

protected void drpstatus_SelectedIndexChanged(object sender, EventArgs e) { DropDownList drpstatus = (DropDownList)sender; GridViewRow row = (GridViewRow)drpstatus.Parent.Parent; int idx = row.RowIndex; }

更多推荐

网格视图单元

本文发布于:2023-11-23 04:46:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1620144.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网格   视图   单元

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!