Information générale
Titre:
DataColumn property
One of my properties on my derived TextBox called DMHTextBox is of type DataColumn. WhenI set the property in the property editor at design time, it shows a + sign with info in it about the column I selected. However, it shows nothing in the box directly to the right of the property. So there is the prop name DataColumn an empty box, but a + sign that can be expanded. It looks like I've selected a column.
However, when I call my custom DataBind method, I don't pass in the Column or DataView I use those set in Properties from design time. For some reason the DataColumn is null! I confirm this in the debugger, but it is "set" in the design mode! The DataView works fine, it is not null.
I think it is great that the property editor recognizes the type and allows you to pick the column. It seems to work for DataView, but not DataColumn.
Any ideas? Am I being clear? :)
-Jerry
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement