ComboBox DropDownStyle in DataGridView is not saved

0
0

Hi,

It is not possible to set the style to other than “DropDown”. It is not saved.

Also I feel that the down arrow should be visible even if not in edit mode.

Best regards,

Wilfred

  • You must to post comments
0
0

Hi Luca,

  • Microsoft Visual Studio Enterprise 2015
    Version 14.0.25431.01 Update 3
  • Wisej 1.3.17.0
  • Ultramon icons. http://www.ultramon.com
  • Same thing if i select a column i the property editor and change properties from there.

Thanks for having looked at this. Obviously there is something local on my system and probably a tool/plugin i use that is causing this. I will inform you if i find what is causing it. No need to waste more time on this.

Thanks,

Wilfred

 

 

  • You must to post comments
0
0

Hi Wilfred,

I see. But cannot reproduce, other developers also tried. Questions:

  • VS version?
  • Wisej build?
  • What are those two icons on the title bar of the editor dialog?
  • What happens if you select a column in the property editor and change the property from there?

Thanks,

Luca

  • You must to post comments
0
0

Hi Luca,

In picture 1 I have the columns collection.

In picture 2 I have changed DropDownStyle to “DropDown” and Visible to “False”. Still no indication that the file has changed.

In picture3 I have added a new column. Notice that now a star, highlighted by my red ring, indicate the file has changed.

Tested on two machines. Same behavior.

Best regards,

Wilfred

Attachment
  • You must to post comments
0
0

Hi Wilfred,

You can set EditMode to EditOnEnter.

I tired to reopen the columns in design mode and change only one property and I get the modified file. Can you try again and let me know please?

Best,

Luca

  • You must to post comments
0
0

Hi Luca,

Indeed, I can set the property using the designer. Investigating a little more I see that the file is not marked as changed if I only change properties inside the columns collection. Adding a column will mark it as changed. Giving it a “star” in the designer tab. Strange.

Thanks for the theme mixin. That looks nice. Perfect.

Is it possible to make the combo enter editmode without having to dobble click. Now you have to dobble click and then click it again to make it drop down. Preferably have it enter editmode and drop down with a single click.

Thanks.

Best regards,

Wilfred

  • You must to post comments
0
0

Hi Wilfred,

See attached sample. Shows two columns,  one with DropDown and the other with DropDownList. The property was set using the designer.

The appearance of the combobox cell can be changed in the theme. When in edit mode it’s simply an edit control inside the cell. When not it edit mode, it’s a rendered <div>. The sample attached included a theme mixin that places a combo down arrow where it would be when in edit mode.

 

{
 "name": "DataGridComboBoxButton",
 "appearances": {
   "table-combobox-cell": {
     "inherit": "table-cell",
     "states": {
       "default": {
         "styles": {
           "backgroundSize": "20px",
           "backgroundImage": "combo-arrow",
           "backgroundPosition": [ "center", "calc(100% - 2px)" ]
         }
       }
     }
   }
 }
}

You can use “right” instead of “calc(100% – 2px)”, but in that case you’ll see that when in edit mode the arrow is 2px off because of default padding. Using calc aligns it perfectly.

 

 

Best,

Luca

 

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.