将“动态"下拉列表添加到现有动态数据表中 [英] Add Dynamic drop down to the existing Dynamic data table

查看:63
本文介绍了将“动态"下拉列表添加到现有动态数据表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在用于更新数据库中内容的可编辑动态表( 基于过滤器 获取数据)中添加一个下拉列表. /p>

,以便用户可以从下拉列表中选择表中特定列的数据,前提是在数据库中选择该选项后又可以对其进行更新.

请在同一点上分享您的想法/想法.

此致

Sudheer


感谢与问候,苏德海尔

解决方案

我建议您检查gridview EditItemTemplate,可以使用动态值设置自定义控件.

以下是很好的示例,供您参考.

最好的问候,

Lee


Hi,

I want to add a drop down to the editable dynamic table(Get the data based on the filter ) that is used for update the content in the database.

so that the user can select the data for the specific column in the table from the drop down provided that  in turn get updated upon selecting the choice in the database.

Please share your ideas/thoughts on the same.

Regards,

Sudheer


Thanks & Regards, Sudheer

解决方案

Hi,

I would suggest you check gridview EditItemTemplate, you could set custom control with dynamic values.

Here are good samples for your reference.

https://www.aspsnippets.com/Articles/Populate-DropDownList-with-Selected-Value-in-EditItemTemplate-of-GridView-in-ASPNet.aspx

https://www.asparticles.com/2016/10/bind-dropdownList-in-edititemtemplate-of-gridview-with-selected-value-using-button-edit-commandname-in-aspnet.html

Best Regards,

Lee


这篇关于将“动态"下拉列表添加到现有动态数据表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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