本文介绍了单列每一行中具有不同控件的Datagrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在创建一个WPF窗口应用程序,其中有一个包含三列的Datagrid,其中第一列定义了描述,第二列定义了与该描述相对应的值,第三列定义了用于更改值的控件(例如TEXTBOX,DROPDOWN,DATETIMEPICKER).

现在的问题是,一旦选择了行,如何在第二列中显示特殊控制(取决于第三列的值).

请帮助我解决我的问题.

感谢和问候
Sanket Patil

Hi all,

I am Creating an WPF Window Application in which i have a Datagrid having three columns in which 1st column defines the Description and the 2nd Column defines the Value against that description and the third column defines the control to be used For Changing the Values (For e.g. TEXTBOX ,DROPDOWN,DATETIMEPICKER).

Now the problem is How can i show Particular control (depending upon the values of 3rd column) in 2nd Column once the row is selected.

Please Help Me To Solve My Problem.

Thanks And Regards
Sanket Patil

推荐答案


这篇关于单列每一行中具有不同控件的Datagrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 23:08