question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text with first underscore doesn't get populated in ComboBox

See original GitHub issue

Text with first underscore doesn’t get populated in ComboBox

Steps to reproduce: Populate a ComboBox with 8z_Without_CQG, 8z_Without_CQG, 7z_Without_CQG, 6z_Without_CQG, 5z_Without_CQG, 4z_Without_CQG, 3z_Without_CQG

When we click on ComboBox, it will show as follows: issue

Expected would be: 8z_Without_CQG Currently its showing: 8zWithout_CQG

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jespershcommented, Sep 24, 2019

This is most likely because how WPF is handling the first _ as a accesskey.

There’s various ways to fix it. Here’s some material: https://stackoverflow.com/questions/9403782/first-underscore-in-a-datagridcolumnheader-gets-removed https://stackoverflow.com/questions/9684619/label-doesnt-display-character

0reactions
deepakG86commented, Sep 9, 2022

Similar issue exists when we use underscore in Category when using grouping in the combo box (WPF) image notice how the underscore in Investigation_1 is missing in the UI

Read more comments on GitHub >

github_iconTop Results From Across the Web

ComboBox searching in string, not just the first letter
I have problem making my combobox searching inside the strings in the items. I want to narrow down a list of members. They...
Read more >
Populate combo box as user type any string
I have a search button on form along with a text box to search any typed string, but I want the easy way...
Read more >
How to use a ComboBox with autocomplete and search as ...
Try this code. The combo box is an ActiveX Combo Box with the following properties: Name = ComboBox1 ListFillRange = blank
Read more >
A combo box with conditional logic for options to select from
I have three fields that the conditional is based on from the previous screen: "A" field (dropdown of Yes/No), "B" field (text), and...
Read more >
How to remove underscore from Enum : r/csharp
Hello, I'm using an Enum for countries to populate a comboBox in my program. However it shows underscores when running the program because ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found