在子控件的情况下如何直接获取gridview的rowindex [英] how to directly get the rowindex of a gridview in the event of it's child controls

查看:95
本文介绍了在子控件的情况下如何直接获取gridview的rowindex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!老兄,
我能知道如何在存在于gridview中的下拉列表的SelectedIndexChanged事件中直接获取gridview的rowindex.
帮助ne ouuuuuut.
紧急.
T.Q.
..

hi!dudes,
can i know how to directly get the rowindex of a gridview in the SelectedIndexChanged event of the dropdownlist present in the gridview.
help ne ouuuuuut.
it''s urgent.
T.Q.
regards..

推荐答案

DropDownList dllist=(DropDownList)sender;
GridViewRow gr = (GridViewRow)dllist.NamingContainer;


这篇关于在子控件的情况下如何直接获取gridview的rowindex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆