The DataGridViewComboBoxCell shows the correct value already. There are no comboboxes created in each cell, it’s not how the DataGridView works. The ComboBox is created in edit mode. If you send a small test case showing the problem it would help.
Tried Chrome, IE and Firefox with a Label “Passwort:” set to bold and width 63, which is the minimum before it gets truncated.
Thank you,
waiting your answer, i discovered the problem. so i have changed my procedure to find specific node navigating through the nodes, and it works correctly.
When treeview contains a lot of nodes, this approach is more efficient than use TreeView1.Nodes.Find(key, searchChildren).
Bye
The Nodes collection indexer searches only the immediate children. TreeView1.Nodes(name) will find the node in TreeView1.Nodes only. To search deep use TreeView1.Nodes.Find(key, searchChildren). It returns an array of found nodes with the key is pass true for searchChildren.
this special <style ..> doesn’t work as expected … actually nothing happens after inserting
screenshots in the attachment show the difference
Firefox 80.0 (64-Bit)
That sample is for a single shared thread. It’s started when the class is loaded and it’s share among all sessions. When to stop the thread is entirely your choice. If you don’t stop it, the IIS will terminate the thread when the application (the app pool) is unloaded.
If you want to stop the thread programmatically you have to decide when depending on your app. You could count the sessions listening to the broadcast event by adding a counter in add() and remove() (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/add) and start the service on the first subscriber and stop it when the last unsubscribes. Or you can keep it running for an X amount of time after the last subscriber is gone. Or you can start it immediately when the class is loaded (like the sample) and stop it depending on usage, or on subscribers count, etc…
Try to add this to your Default.html. A Firefox recent update seems to have changed the rendering of fonts and we had to remove the -0.03em adjustment. Let me know and please send also a screen shot and the FF exact version.
Inside <head>
<style>
/* Fix Firefox wrong font rendering. */
@-moz-document url-prefix() {
div {
letter-spacing: -0.03em;
}
}
</style>
Hi Luca,
Thanks for explaining this.
Feature request:
A DataGridView that can handle sorting of any bound list by keeping a sorted reference list to the records in the original list. Sorting is done on the reference list and not the bound list.
I know sorting can be handled in the business object bound list by adding logic to the list. But I think this kind of sorting is a UI thing and should be handled by the UI framework.
Thanks.
Best regards,
Wilfred
Yes, i assigned name property using two different methods:
1)Assigning Key in ADD operation
r2 = r1.Nodes.Add(i0 & “_” & i1, “1 naming”)
2)Assigning direclty property:
r2.Name = i0 & “_” & i1
When i click on the node, the value of the property “name” is correctly retrieved :
Private Sub TreeView1_NodeMouseClick(sender As Object, e As TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
MsgBox(e.Node.Name)
But when i try to retrieve node using the same property value , result is always “Nothing”
Dim newnode As TreeNode
newnode = TreeView1.Nodes(e.Node.Name)
MsgBox(newnode.Name)
See Attached file with my code
Thanks Luca, I now have a partial solution. The ComboBox is now shown in the DataGridView, that is nice. But in existing DataGridView records it is still NOT initalized with the field value. Assume we have a DataGridComboBox with Country values and the existing record contains the value “US”, than this not shown in the ComboBoxGridfield.
In the attachment you’ll find the form as created with Visual Webgui. In the various Combo’s as part of the DataGridView all values of existing records are shown.
So the question is: How do I manage that a Combo inside a DataGridView shows the actual value?
I am using VB2015 and cannot find any sample in this respect.
Regards,
Wim
It’s fixed internally. We’ll update 2.2 tomorrow. The build also used a wrong revision.
It’s fixed internally. We’ll update 2.2 tomorrow. The build also used a wrong revision.
bs.DataSource = typeof(VM);
Is the definition of the data source. But when you populate the grid you must assign the actual data source to bs.DataSource. What kind of data source is it? DataTable, custom list, array?
the binding is like:
public class VM { int Id; … }
Wisej.Web.BindingSource bs = …;
…
bs.DataSource = typeof(VM);
dataGridViewTable.DataSource = bs;
…
Did you assign the Name property? The Name is “” by default and is different from the Text.
There has been a fix/change related to this issue: https://wisej.com/support/question/datagridview-and-sorting
Is your DGV data bound and if yes, what is the data source type?
Hi everyone,
we are currently testing the 2.2 Update and faced the same or a similar issue.
We use the ribbonbar extension DLL provided by the WiseJ Installer usually located in “ProgramFiles/IceTeaGroup/bin”.
Shouldn’t this always the newest version of the ribbonbar?
If I check the details of the DLL it says version “2.2.9”, but change date is the 21st of September.
@luca could you check if something went wrong with the latest 2.2.9 installer?
Do we have to compile the ribbon bar on every developer machine and the build servers now?
You need to download the extensions and recompile and replace the current extensions with the new ones to recompiled. I had the same issue.
Thanks -Tim
yes, for test I start a new project, put Ribbon 2.2 and compile
I attach test
