鼠标悬停在datagrid组合框列中的下拉列表项上显示工具提示 [英] display tool tip on mouse over of the drop down list item in the datagrid combobox column

查看:75
本文介绍了鼠标悬停在datagrid组合框列中的下拉列表项上显示工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我的wpf应用程序中有一个datagridview,它有一个带有一些项目的datagridcombobox列。

例如Y ,N。

如果我在组合框中选择Y,我需要在datagridcombobox鼠标上显示可用作为工具提示。

如果我选择N在组合框,我需要在datagrud组合框的鼠标上显示不可用作为工具提示。







问候,

解决方案

试试这个...

 <  选择 >  
< 选项 value = Y title = 可用 > < / option >
< 选项 value = N title = 不可用 > < /选项 >
< / select >


 <跨度cl ass =code-keyword><   ComboBox    高度  =  29    VerticalAlignment   =  Top   保证金  =  12,56,-12,0 >  
< ; ComboBoxItem 内容 < span class =code-keyword> = Y 工具提示 = 可用ible > < / ComboBoxItem >
< ComboBoxItem 内容 = Y 工具提示 = 不可用 > < / ComboBoxItem >
< / ComboBox >


Hi,

I have a datagridview in my wpf application and it has a datagridcombobox column with some items.
for example Y,N.
if i select Y in the combobox, i need to display "Available" as tool tip on mouse over of the datagridcombobox.
if i select N in the combobox, i need to display "Not Available" as tool tip on mouse over of the datagrud combobox.



Regards,

解决方案

Try this...

<select>
<option value="Y" title="Available">Yes</option>
<option value="N" title="Not Available">No</option>
</select>


<ComboBox Height="29" VerticalAlignment="Top" Margin="12,56,-12,0">
          <ComboBoxItem Content="Y" ToolTip="Availaible"></ComboBoxItem>
          <ComboBoxItem Content="Y" ToolTip="Not Availaible"></ComboBoxItem>
      </ComboBox>


这篇关于鼠标悬停在datagrid组合框列中的下拉列表项上显示工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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