Skip to content

DataGridViewTextBoxEditingControl #260

Closed

Description

@itg-assistant

Huzursoft asked 2016-09-16 01:05:52 UTC

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);**
** }**
** }**

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-09-16 16:42:29 UTC

    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

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Cirs answered 2016-09-16 19:29:35 UTC

    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.

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-09-16 19:33:11 UTC

    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.

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Huzursoft answered 2016-09-16 20:02:57 UTC

    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 ?

  5. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-09-19 15:02:42 UTC

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions