通过对象数据源访问radgrid行
我有一个 radgrid,在所说的 radgrid 中,我有一个模板列,它是一个可爱的下拉列表:
<telerik:GridTemplateColumn HeaderText="Feedback" UniqueName="Feedback">
<ItemTemplate>
<asp:DropDownList ID="ddlFeedback" runat="server" AppendDataBoundItems="True" AutoPostBack="True" OnSelectedIndexChanged="ddlFeedback_SelectedIndexChanged">
</asp:DropDownList>
</ItemTemplate>
</telerik:GridTemplateColumn>
我的 radgrid 中有一个列,它是主键,它有一个可爱的值。
如何从下拉列表的 SelectedIndexChanged 事件上的 radgrid 获取主键值,即本质上找到下拉列表已更改的 radgrid 行?
I have a radgrid and within said radgrid, I have a templatecolumn that is a lovely drop down list:
<telerik:GridTemplateColumn HeaderText="Feedback" UniqueName="Feedback">
<ItemTemplate>
<asp:DropDownList ID="ddlFeedback" runat="server" AppendDataBoundItems="True" AutoPostBack="True" OnSelectedIndexChanged="ddlFeedback_SelectedIndexChanged">
</asp:DropDownList>
</ItemTemplate>
</telerik:GridTemplateColumn>
I have a column in my radgrid that is the primary key and it has a lovely value in it.
How can I get the primary key value from the radgrid on the SelectedIndexChanged event of the drop down list i.e. essentially finding the row of the radgrid where the drop down list has been changed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了。谢谢!
Found it. Thanks!