datagrid视图-选择下拉列表时加载label列 [英] datagrid view -- On select of a dropdown load the label column

查看:69
本文介绍了datagrid视图-选择下拉列表时加载label列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

数据网格视图具有两列1.DropDown 2.标签.


在单行的编辑模式下,当我在下拉列表中选择一个值时,基于该值,标签控件将填充同一行的新值.

A datagrid view has two column 1.DropDown 2. Label.


In edit mode of a single row when i choose a value in dropdown ,based on it the label control to be populated with the new value of the same row.

推荐答案

数据网格视图-选择下拉菜单时,标签列-所需样品
:doh:

你自己尝试了什么吗?
这是询问者的期望:
1. 先尝试您要做什么!您可能会发现它并不难.
2.制定看起来像问题/无法解决的问题.



现在,对于您的问题,将下拉列表添加到网格的模板列并定义下拉更改事件.在这种情况下,请随心所欲.试试看.如果您遇到问题,请提出具体疑问.
datagrid view -- On select of a dropdown load the label column -- Sample needed
:doh:

Did you try anything by yourself?
Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it''s not that hard.
2. Formulate what was done by you that looks like an issue/not working.



Now, for your question, Add dropdown to a template column of your grid and define the dropdown change event. In the event, do as you please. Try out and see. If you face issue, post specific doubt.


请指定您的问题,不足以给出答案
Pls specify your question this not enough to give answer


这篇关于datagrid视图-选择下拉列表时加载label列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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