Editing DataGridViewImageCell?
-
Hi, what modifications should I do to add "editing" functionality to DataGridViewImageCell. I need a cell that has Image external representation and Text internal representation. I know how to get a Text string from Image name and vice versa for my case. What class should I derive from and what I need to modify?
-
Hi, what modifications should I do to add "editing" functionality to DataGridViewImageCell. I need a cell that has Image external representation and Text internal representation. I know how to get a Text string from Image name and vice versa for my case. What class should I derive from and what I need to modify?
You are in the right direction. You should derive from DataGridViewImageCell class, and set your DataGridViewImageColumn.Template property to that class. For the editing support, there is a control associated with each DataGridViewCell. I believe you should set
MyNewImageCellType.EditType = typeof(TextBox);
or something!Regards:rose: