Share via

Customtextbox in customdatagridview

ankit goel 766 Reputation points
2023-09-29T12:07:32.6766667+00:00

Hi ,

i have a Created a textbox which when gets the focus , changes its backcolor and forecolor . It also clear out its text when the user presses escape key . Moreover, it also have a custom caret in it which looks like Dos . Is it possible to create a entire custom datagridview in which all the columns behave like this textbox . My requirement is only for textboxcolumns . the datagridview wont have any button , combox or any other type of columns except textbox . So please suggest how to create a datagridview and attach the events same as textbox .

Developer technologies | Windows Forms
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


1 answer

Sort by: Most helpful
  1. KOZ6.0 6,810 Reputation points
    2023-09-29T12:54:39.4966667+00:00

    It's a little troublesome. Look at this.

    How to: Host Controls in Windows Forms DataGridView Cells

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.