Cor:DataGridComboColumnStyle [英] Cor: DataGridComboColumnStyle

查看:51
本文介绍了Cor:DataGridComboColumnStyle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cor,


我在新闻组上发现了您之前发来的消息,其中包含一个代码为
DataGridComboColumnStyle ..这个似乎工作得更好比我写的那个

,但是我遇到了一些问题。一,如果我在栏目中选择
,它就不会留在那里。它会立即进入下一个

列。第二个,如果你不在列中,那么当组合消失时,组合中的组合没有显示在组中。


我我使用相对相同的代码,但我做了一个更改。我在Combobox public上制作了

,这样我就可以在ColumnStyle之外的

中修改它的一些属性。我之所以这样做,是因为我想设置

选择值绑定,而我找不到一个New()方法来做那个

所以我作弊。 :)


任何有关这些的帮助将不胜感激。

谢谢,

Aaron

-

---

Aaron Smith

删除-1-给我发电子邮件。垃圾邮件糟透了。

Cor,

I found a previous message from you on the newsgroups with code for a
DataGridComboColumnStyle.. This one seems to work a lot better than the
one that I wrote, however I''m having a couple of problems. One, if I tab
into the column, it won''t stay there. It immediately goes into the next
column. The second one, is if you are not in the column, the value of
the combo is not displaying in the column when the combo disappears.

I am using relatively the same code, however I made one change. I made
the Combobox public, so that I could modify some of it''s properties from
outside of the ColumnStyle. I did this because I wanted to set the
selectedvalue bindings, and I couldn''t find a New() method that did that
so I cheated. :)

Any help with these would be greatly appreciated.
Thanks,
Aaron
--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.

推荐答案

忘记第一个问题。通过将继承从

columnstyle更改为textboxcolumn来解决这个问题。但是当我插入栏目时,我仍然无法保持这一点。


Aaron Smith写道:
Forget the first problem. Solved that by changing the inheritance from a
columnstyle to the textboxcolumn. But I still can''t keep it from
focusing out of the column when I tab into it.

Aaron Smith wrote:
Cor,

我在新闻组上发现了你之前发来的消息,其中包含了DataGridComboColumnStyle的代码..这个消息似乎比
一个好多了我写道,但是我遇到了一些问题。一,如果我进入栏目,它就不会留在那里。它立即进入下一个
栏目。第二个,如果你不在列中,当组合消失时,组合的值不显示在列中。

我使用相对相同的代码,但是我做了一个改变。我公开了Combobox,这样我就可以在ColumnStyle之外的
中修改它的一些属性。我之所以这样做,是因为我想设置
选择值绑定,我找不到一个New()方法来做那个
所以我作弊。 :)

任何有关这些的帮助将不胜感激。
谢谢,
Aaron
Cor,

I found a previous message from you on the newsgroups with code for a
DataGridComboColumnStyle.. This one seems to work a lot better than the
one that I wrote, however I''m having a couple of problems. One, if I tab
into the column, it won''t stay there. It immediately goes into the next
column. The second one, is if you are not in the column, the value of
the combo is not displaying in the column when the combo disappears.

I am using relatively the same code, however I made one change. I made
the Combobox public, so that I could modify some of it''s properties from
outside of the ColumnStyle. I did this because I wanted to set the
selectedvalue bindings, and I couldn''t find a New() method that did that
so I cheated. :)

Any help with these would be greatly appreciated.
Thanks,
Aaron



-

---

Aaron Smith

删除-1-给我发电子邮件。垃圾邮件糟透了。


--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


如果这是任何人为什么会发生这种情况的任何线索,如果我有一个休息点

点在编辑sub,它不会离开组合框,它会留在那里。

拿出断点,每次都会离开.....


Aaron Smith写道:
And if it''s any clue to anyone why this is happening, if I have a break
point in the edit sub, it won''t leave the combo box, it will stay there.
Take the break point out, and it will leave every time.....

Aaron Smith wrote:
忘记第一个问题。通过将继承从
columnstyle更改为textboxcolumn来解决这个问题。但当我插入栏目时,我仍然无法将其从栏目中移开。

Aaron Smith写道:
Forget the first problem. Solved that by changing the inheritance from a
columnstyle to the textboxcolumn. But I still can''t keep it from
focusing out of the column when I tab into it.

Aaron Smith wrote:
Cor ,

我在新闻组上发现了以前的消息,其中包含了DataGridComboColumnStyle的代码..这个消息似乎比我写的那个好多了,但是我有几个问题。一,如果我进入栏目,它就不会留在那里。它会立即进入下一栏。第二个,如果你不在列中,当组合消失时,组合的
值不会显示在列中。

我使用相对的相同的代码,但我做了一个改变。我公开了Combobox,这样我就可以从ColumnStyle外面修改它的一些属性
。我之所以这样做是因为我想设置
选择的值绑定,而我找不到一个新的()方法,因为我这样做了。 :)

任何有关这些的帮助将不胜感激。
谢谢,
Aaron
Cor,

I found a previous message from you on the newsgroups with code for a
DataGridComboColumnStyle.. This one seems to work a lot better than
the one that I wrote, however I''m having a couple of problems. One, if
I tab into the column, it won''t stay there. It immediately goes into
the next column. The second one, is if you are not in the column, the
value of the combo is not displaying in the column when the combo
disappears.

I am using relatively the same code, however I made one change. I made
the Combobox public, so that I could modify some of it''s properties
from outside of the ColumnStyle. I did this because I wanted to set
the selectedvalue bindings, and I couldn''t find a New() method that
did that so I cheated. :)

Any help with these would be greatly appreciated.
Thanks,
Aaron




-

---

Aaron Smith

删除-1-给我发电子邮件。垃圾邮件糟透了。


--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


好的。忘记这一切。


私有WM_KEYUP作为整数=& H101


受保护的覆盖子WndProc(ByRef m As

System.Windows.Forms.Message)

如果m.Msg = WM_KEYUP那么

''忽略keyup以避免tabbing& amp;下拉列表;

返回

结束如果

MyBase.WndProc(m)

End Sub''WndProc


在派生的组合中修复它。感谢您让我通过

新闻组进行讨论。 lol


亚伦史密斯写道:
Ok. Just forget this whole thing.

Private WM_KEYUP As Integer = &H101

Protected Overrides Sub WndProc(ByRef m As
System.Windows.Forms.Message)
If m.Msg = WM_KEYUP Then
''ignore keyup to avoid problem with tabbing & dropdownlist;
Return
End If
MyBase.WndProc(m)
End Sub ''WndProc

In the derived combo fixes it. Thanks for letting me talk it through on
the newsgroup. lol

Aaron Smith wrote:
如果这是任何人为什么会发生这种情况的任何线索,如果我有休息点在编辑子中,它不会离开组合框,它会留在那里。
把断点拿出来,每次都会离开......

亚伦史密斯写道:
And if it''s any clue to anyone why this is happening, if I have a break
point in the edit sub, it won''t leave the combo box, it will stay there.
Take the break point out, and it will leave every time.....

Aaron Smith wrote:
忘记第一个问题。通过将继承从
列样式更改为textboxcolumn来解决这个问题。但当我插入栏目时,我仍然无法将其从栏目中移开。

Aaron Smith写道:
Forget the first problem. Solved that by changing the inheritance from
a columnstyle to the textboxcolumn. But I still can''t keep it from
focusing out of the column when I tab into it.

Aaron Smith wrote:
Cor ,

我在新闻组上发现了以前的消息,其中包含了DataGridComboColumnStyle的代码..这个消息似乎比我写的那个好多了,但是我有几个问题。一,如果我进入专栏,它就不会留在那里。它会立即进入下一栏。第二个,如果你不在
栏中,当组合消失时,组合的值不会显示在列中。

我正在使用相对的相同的代码,但我做了一个改变。我公开了Combobox,以便我可以从ColumnStyle外面修改它的一些属性。我之所以这样做,是因为我想设置选定的值绑定,而我找不到一个新的()
方法,所以我作弊。 :)

任何有关这些的帮助将不胜感激。
谢谢,
Aaron
Cor,

I found a previous message from you on the newsgroups with code for a
DataGridComboColumnStyle.. This one seems to work a lot better than
the one that I wrote, however I''m having a couple of problems. One,
if I tab into the column, it won''t stay there. It immediately goes
into the next column. The second one, is if you are not in the
column, the value of the combo is not displaying in the column when
the combo disappears.

I am using relatively the same code, however I made one change. I
made the Combobox public, so that I could modify some of it''s
properties from outside of the ColumnStyle. I did this because I
wanted to set the selectedvalue bindings, and I couldn''t find a New()
method that did that so I cheated. :)

Any help with these would be greatly appreciated.
Thanks,
Aaron





-

---

Aaron Smith

删除-1-给我发电子邮件。垃圾邮件糟透了。


--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.


这篇关于Cor:DataGridComboColumnStyle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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