:-( It is just launched When I change the current cell !! It seem very basic functionnality, It is certainely possible to do this, but How ???? In my C# application I have a data-bound Data Grid View.
I have a Data Grid View with a Date (Date Time) Column. When a user edit the cell and change the date I woulk like to allow him to write "081501" and programmatically transform the entered date to "2008/15/01"( using a custom method *called Transform Date(string ARaw Date)) But I can't find any Data Grid View event to call the Transform Date method and replace the user input by the computed value. Does anybody if this kind of transformation *is possible in a Data Grid View and Where is the best place to put the call to the transformation method ? In the following example, the data is stored as 75000 but the user wants the data displayed as "75k" instead.
Currently, I'm just manually calling my validation logic before I call End Edit, but it seems like I'm missing something.
I guess I could call On Cell Validating, but then I'd be worried I'm missing some other event. Keys) As Boolean Dim key As Keys = (key Data And Keys.
Below is a snippet that shows the value passed in through the eventargs compared with the existing value in the grid.
Regards, Clay Burch void data Grid View1_Cell Validating(object sender, Data Grid View Cell Validating Event Args e) derivative where T implements IEditable Object.