Ouch, wrote a response and got an error from the browser :(
Have to repeat.
In that particular case you don't really need to pass object reference and therefore don't need lparameters statement, however, I included it in order to make code more generic. It's a good practice to pass object reference in case of special handling...
Check out FAQ by Mike Helland about adding code to grid in run-time.
>>In order to use grid's DblClick event you would have to put code in Column's text DblClick event like this.parent.parent.DblClick(this)
>
>>In grid's DblClick you can do:
>lparameter toTextBox && not really needed, but just in case
>this.KeyValue = evaluate(this.ColumnHidden.ControlSource)
>
>>where you grid would have a custom property KeyValue and your hidden column always would have some predefined name...
>
>Perfect!
>I did have to include the lparameter toTextBox. Any idea why?
>
>Thank you,
>Tom
If it's not broken, fix it until it is.
My Blog