Dear Tiago,
By the way, I was wondering how come you are the only one with a picture next to your name… Have I missed some registration procedure?
Best,
Alex
Dear Tiago,
I didn’t need to restart! In fact, after updating to the latest wisej version (1.2.40), my tools showed up.
Many thanks for your help.
Alex
Changed the handler to
private void dataGridView1_CellToolClick(object sender, DataGridViewToolClickEventArgs e)
{
var cell = ((DataGridView)sender).Rows[e.RowIndex].Cells[e.ColumnIndex];
cell.Value = string.Empty;
((DataGridView)sender).EditingControl.Text = cell.Value.ToString();
}
and now it works.
Hi Tiago,
It changes the value of the cell, but you don’t see it because the editor is in front of it. Try to change the editor:
((DataGridView)sender).EditingControl.Text = “”;
It’s the same in WinForms. Cell.Value is always the stored value. Cell.EditedFormattedValue is the value in the editor – if in edit mode – or the cell, but it’s read-only.
Best,
Luca
Hi Alex.
There’s nothing wrong with your code. I tryed it on my own project (copy&paste) and it runs all right. So… other than suggesting a computer restart :), I can’t help you.
Dear Luca,
I apologize, it was my problem, in the web.config. Forget it!
Alex
Luca, I’m sorry, I get the same error even with the latest 1.2.40. The first screen does not show up at all. Since it works on my dev but not on “production” I suspect some problem with the License on the remote server.
Alex
Hi Tiago,
Thanks for your answer. But I can’t make it work. I do the same as the steps you mention, but in my code, not using the designer. As soon as I create the ComponentTool, i.e. uncomment the first of the commented out lines in the following, I get and empty screen….
Thanks again.
Alex
public partial class Window7 : Form
{
public Window7()
{
InitializeComponent();
var text = new TextBox();
text.Left = 100;
text.Top = 100;
this.Controls.Add(text);
//var tool = new ComponentTool();
//tool.Position = LeftRightAlignment.Left;
//tool.ImageSource = “tab-close”;
//tool.ToolTipText = “Push this to get magic!”;
//text.Tools.Add(tool);
}
}
Alex,
One of the previous builds had a problem with tools that caused the creation of the widgets to stop.
Best,
Luca
Hi Tiago,
The property to hide the tools when losing the focus is not there yet. It needs to be defined better.
All DGV columns with editors that support tools have the Tools property and are all implemented.
Best,
Luca
Hi Alex,
Please use the latest. You can also find loaded on the test server. There was a problem with the toolbox items that interrupted the creation of the widgets on the client.
Best
Luca
Yes. It wasn’t working when the combobox was dropdown only – not editable
As per 2.1.40.0, replace System.EventHandler by Wisej.Web.ToolClickEventHandler
This same version introduces cell Tools. Use the designer and set the Tools on the relevant column. You must also set CellToolClick event handler.
Fixed on 1.2.40.0
Hi Alex,
I just used the designer and to add componentTool1 Tool to txtAddress TextBox it generated the following code:
Wisej.Web.ComponentTool componentTool1 = new Wisej.Web.ComponentTool();
...
componentTool1.ImageSource = "tab-close";
componentTool1.Name = "clear";
componentTool1.ToolTipText = "ClearTextBox";
this.txtAddress.Tools.AddRange(new Wisej.Web.ComponentTool[] {
componentTool1});
...
this.txtAddress.ToolClick += new System.EventHandler(this.txtAddress_ToolClick);
and also the event handler
private void txtAddress_ToolClick(object sender, EventArgs e)
{
txtAddress.Text = string.Empty;
}
Hi guys,
I’m trying to get a Tools in a Textbox, but as soon as I add a Tool to the tools collection, the form becomes invisible. What am I missing? Can you share a piece of implementation code? Below the code I’m using.
Best,
Alex
………………………………………
var fOtherForm = new Form();
fOtherForm.MdiParent = this;
fOtherForm.Show();
var text = new TextBox();
text.Left = 100;
text.Top = 100;
fOtherForm.Controls.Add(text);
var tools = new ComponentToolCollection(text);
var tool = new ComponentTool();
tool.Position = LeftRightAlignment.Left;
tool.ToolTipText = “Push this to get magic!”;
// Up to here, the TextBox is visible in the form, after the following line I get an empty screen!
tools.Add(tool);
……………………….
Hi Frank,
As per 1.2.38.0 Suggest or SuggestAppend modes aren’t working. I checked using the sample Wisej.CustomColumnEditor submitted by Luca on https://wisej.com/support/question/initial-comment-on-datagridview-enhancement
Hi Luca,
There are 2 issues on this thread:
Thanks Luca, that fixed it.
Nic
1.2.39.0 Update
Sorry, it’s not fully tested. Still short until Monday.
Breaking Changes
– The ToolClick event and OnToolClick method have been changed to be consistent with the .NET event system. Now the sender is the control that owns the tools, and the args is an instance of ToolClickEventArgs with a property named Tool that is a reference to the ComponentTool widget that was clicked. Known issue: The tool button must have a name or it’s not detected correctly by the event.
– The property Application.Context has been removed. There is no need to save and restore the context for out-of-bounds real time updates.

| Item | Type | Priority | Severity | Title | Resolution |
| WJ-7515 | Bug | Low | Trivial | TextBox.CharacterCasing = Uppercase changes to uppercase only when typing, the value keeps the original casing. | Complete |
| WJ-7516 | Bug | Low | Trivial | Typing when a DropDownList combobox is dropped down doesn’t select the items. | Complete |
| WJ-7517 | Bug | Low | Trivial | When a scrollable panel shows the vertical scrollbar now it also always show the horizontal scrollbar. | Complete |
| WJ-7487 | Bug | Low | Trivial | Child controls inside SplitContainer don’t resize when application starts with WindowState = Maximized | Complete |
| WJ-7513 | Bug | Low | Trivial | DGV inner controls docked to bottom or right and resizable don’t update the inner layout correctly. | Complete |
| WJ-7518 | Bug | Low | Trivial | Form.CancelButton doesn’t respond to Escape. | Complete |
| WJ-7519 | Bug | Low | Trivial | Clicking on the middle of an empty MaskedTextBox may place the caret in between the placeholder string. | Complete |
| WJ-7514 | Bug | Low | Trivial | The form control sets the focusable widget property to true and causes an intermittent javascript error. | Won’t Fix |
| WJ-7286 | Bug | Low | Trivial | Panel.ResizableEdges = Bottom does not work. | Complete |
| WJ-7287 | Task | Medium | Minor | Implement DataGridViewComboBoxColumn data binding. | Complete |
| WJ-7349 | Enhancement | Low | Trivial | Show the type of the selected DGV colum in the columns editor. | Complete |
| WJ-7367 | Bug | Low | Trivial | DGV: DateTime Column that is bound to the grid wraps | Complete |
| WJ-7418 | Bug | Low | Trivial | Long non-wrapping messages in a MessageBox touch the right border. | Complete |
| WJ-7462 | Enhancement | Low | Trivial | Add property or method to hide a TabPage without having to remove it from the TabControl. | Complete |
| WJ-7466 | Bug | Low | Trivial | Columns added to an inherited DGV don’t serialize their relative DisplayIndex. | Complete |
| WJ-7486 | Bug | Low | Trivial | Grid.OnDoubleClick isn’t fired | Complete |
| WJ-7487 | Bug | Low | Trivial | Child controls inside SplitContainer don’t resize when application starts with WindowState = Maximized | Complete |
| WJ-7496 | Regression | Low | Trivial | Wisej bubbles extensions stopped working. | Complete |
| WJ-7497 | Regression | Low | Trivial | all menu items show the checkbox icon. | Complete |
| WJ-7498 | Bug | Medium | Major | Clicking on a menu item in a SplitButton generates an ApplictionException “Wisej.Core.Dynamic.Object” does not contain a definition for ‘Item’. | Complete |
| WJ-7499 | Bug | Low | Minor | Upload control doesn’t send the same file twice. | Complete |
| WJ-7500 | Enhancement | Low | Trivial | Wire clicks inside an HtmlPanel back to the server. | Complete |
| WJ-7501 | Task | Low | Trivial | Add Tools to DataGridView | Complete |
| WJ-7502 | Task | Low | Trivial | Add Tools to TreeView | Complete |
| WJ-7503 | Task | Low | Trivial | Add Tools to MonthCalendar | Complete |
| WJ-7504 | New Feature | Low | Trivial | Allow the DataGridView to host arbitrary docked or floating controls. | Complete |
| WJ-7505 | New Feature | Low | Trivial | Allow any control to host child controls. | Complete |
| WJ-7506 | New Feature | Low | Trivial | Add RowSpan, ColSpan to DataGridCellStyle. | Complete |
| WJ-7508 | Bug | Low | Trivial | HelloWorld sample in the installer is broken. | Complete |
| WJ-7509 | Bug | High | Major | Azure deployment causes all controls to be created with 0 size and negative locations. | Complete |
