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)
{
try
{
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);
}
}
Hello,
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.
WinForms
Wisej
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.
Best,
Luca
I want to migrate this project, I tried two days
http://www.huzursoft.com/project.rar
Controls style ect not important , migrate to wisej this project as general , is it possible or not ?
Hi guys,
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;
};
Thanks.
The cell styles are not transferred to the editing control – not sure yet if it’s a good idea.
Try e.Control.BackColor = Color.Aquamarine.
Yes, it should work just the same.
The EditingControlShowing event is available. If you have any issue, please send a test case and we’ll fix it.
Best,
Luca