Wisej have DataGridViewTextBoxEditingControl like winforms ?
I wanto migrate my winforms application to wisej
Like my code:
private void dgvMultipleProductCreto ation_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
DataGridViewTextBoxEditingControl dgvtxt = e.Control as DataGridViewTextBoxEditingControl;
if (dgvtxt != null)
dgvtxt.KeyPress += dgvtxt_KeyPress;
if (e.Control is DataGridViewTextBoxEditingControl)
DataGridViewTextBoxEditingControl tb = e.Control as DataGridViewTextBoxEditingControl;
tb.KeyDown -= dgvMultipleProductCreation_KeyDown;
tb.KeyDown += new KeyEventHandler(dgvMultipleProductCreation_KeyDown);
Yes it’s very possible. But it’s a large project with more than 400 forms. It’s not something you can do in 2 days. I tried with a form that looked like a good example and mix of features and in about 10 minutes I could make it compilable and designable in Wisej.
See below screen shots and more insights on the app and issues and process.
This app seems quite straightforward and relatively easy to migrate to the web with Wisej. However, given the size, I’d say that it’s a 2-4 months project – not counting QA.
The vast majority of the forms go to wisej in few minutes, it’s just a matter of removing the Winforms specific properties.
The migration of the non-UI code requires removing all the calls to SendKey and to modify the use of CrystalReports to run on the server and return a pdf.
I would also remove all the custom colors and remove all those tool buttons next to the controls to modernize it a bit.
Our service partner and sister company fecher LLC has automatic tools, libraries, and the expertise for this kind (and much larger) projects. Having said that, this is a very doable, straightforward WinForms to Wisej project.
It’s available but not working as expected. Code-snippet below has no effect in Wisej but working in WinForm.
dgv.EditingControlShowing += (s, e) =>
e.CellStyle.BackColor = System.Drawing.Color.Aquamarine;