chpicker
Programmer
- Apr 10, 2001
- 1,316
Does anyone know how to add columns to a grid with methods in them? My program creates a cursor with a variable number of columns, then sets the recordsource of the grid to the cursor. I then make enough columns in the grid to hold the cursor. However, I cannot figure out how to add methods to those newly created columns. I need them to respond, at the very least, to a Keypress event (more specifically, I suppose, the text1 member of the column needs to). The simplest solutions I have already discarded: the WriteMethod method is available at design time only, and you cannot seem to create a class for a column. The grid itself does not respond to keypresses. Does anyone have any ideas?