Skip to content

Replies

0
Brian Fallon
Brian Fallon answered on Sep 14, 2015 8:52 PM

I was not able to understand exactly how you are using dynamic types from the examples you listed here. Since you did mention "dynamic properties", I will go on the assumption that you have dynamically typed properties on your 'Person' object, and these properties are not appearing in the UltraGrid, i.e., columns are not created for them.

The only thing I can think of that would explain that is that the scope of the property was not defined as public.

In any case I attached a sample that demonstrates dynamic properties appearing as expected in the UltraGrid; please modify this sample to reproduce the problem you are describing and we will take a closer look.

0
Brian Fallon
Brian Fallon answered on Sep 2, 2015 11:33 PM

By default, the control's dropdown button glyph (the downward-pointing arrow) looks the same as the one drawn by the operating system, which implies that you have either set some appearance properties or applied AppStyling without realizing it.

Just to see how you may have gotten it to look the way it does in your screenshot, I tried the following property settings:

this.uce.UseOsThemes = Infragistics.Win.DefaultableBoolean.False;

this.uce.UseFlatMode = Infragistics.Win.DefaultableBoolean.True;

this.uce.DropDownStyle = Infragistics.Win.DropDownStyle.DropDownList;

this.uce.ButtonAppearance.BackColor = System.Drawing.Color.Transparent;

this.uce.ButtonAppearance.BorderColor = System.Drawing.Color.Transparent;

The gotcha here is that the dropdown button glyph is drawn by the operating system, but the Windows theme renderer (at least on Windows 8.1) evidently draws a background and border for the dropdown button. So without customized drawing code, it looks like it is not possible to get the UltraComboEditor to look exactly like the .NET ComboBox.

0
Brian Fallon
Brian Fallon answered on Apr 11, 2011 2:40 PM

[quote user="tonymanjaly"] Next thing should be, the UltraTextEditor should behave the same way as Microsoft Text Editor. It should interpret the \n in to a new line in the control.[/quote] I'm not sure what observation you based this on but if you set a TextBox's Multiline property to true and assign the following value:

this.textBox1.Text = "Line1\nLine2\nLine3";

It does not interpret the \n as a newline. The correct value to use to get line breaks is "\r\n", which is the value returned from the System.Environment.NewLine property.

0
Brian Fallon
Brian Fallon answered on Mar 25, 2009 3:28 PM

The ContextMenu class exposes a Show method, which takes the control and a location as relative to the control's coordinate system. I don't know of any event that fires when it is about to be displayed.

0
Brian Fallon
Brian Fallon answered on Mar 18, 2009 7:10 PM

Yes; you can still add an unbound column when you are bound to a data source. Alternatively, you could add (for example) a DataColumn to the same DataTable, of type Image, having the images in the table data, and the tree will display the images the same way as when the unbound column is used.

0
Brian Fallon
Brian Fallon answered on Mar 18, 2009 7:07 PM

[quote user="Juscher"]Thank you, that's exactly the behaviour I was looking for: an image to the left of each node label in the tree column. Of course if I move the tree, the icons have to move with the labels ![/quote]

My point here is that, unlike with the standard ViewStyle where the NodeAppearance.Image is always displayed between the expansion indicator and the node's text, in this scenario the image is contained within the cell, and if you move the column (not talking about moving the control), the image moves along with it, and won't be the leftmost element anymore.

0
Brian Fallon
Brian Fallon answered on Mar 17, 2009 4:10 PM

Just to clarify, that will display the image inside that cell, and if that column is moved, the cell will move along with it.