在运行时将组合框嵌入到datagridview中 [英] Embedding combobox in datagridview at runtime

查看:81
本文介绍了在运行时将组合框嵌入到datagridview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个datagridview,我使用datatable进行填充.当填充datagridview时,我想在特定列中插入一个组合框,同时这样做,我需要该单元格的值反映在插入的组合框中.

这样,如果用户要保留相同的值,他可以这样做,否则他可以从下拉框中选择一个不同的值.

预先打蜡

Edward

I have a datagridview which I populate using datatable. when the datagridview is populated I want to insert a combobox in a particular column, while doing so i need the value of that cell to reflect in the combobox which got inserted.

By this if the user what to retain the same value he can do so else he can select a different value from the drop down box.

Thax in advance

Edward

推荐答案

访问GridView内部的DropDownList [在ASP.NET GridView控件中使用DropDownList [ ^ ]
Editable Gridview with Textbox, CheckBox, Radio Button and DropDown List[^]
Accessing a DropDownList inside a GridView[^]
Use DropDownList in ASP.NET GridView Control[^]


这篇关于在运行时将组合框嵌入到datagridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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