>My application uses a grid.
>
>I like to give it incremental search capabilities.
>
>I searched trough the FAQ but I cannot find an example.
>In the downloads there are some, but they use a fixed class.
>
>Can someone give me an example to start with ?
>
>Thanks in advance...
In the Download section here there is an InGrid class, which is what you want.
I made few minor changes in this class to enchance its functionality, if you're interested, drop me a note to nosonov@msn.com
Basically my changes are minor and they are:
1) Margin property set to 0 (otherwise it gives some undesired effect)
2) In KeyPress method I check for this.readonly or parent.readonly or parent.parent.readonly. If none of them is true, I make it behave as a regular textbox.
3) I added a new property called cFixedPart to allow search for particular column, but use compound index.
If it's not broken, fix it until it is.
My Blog