Set the grid Enabled event to False before opening the dialog. It won't accept key events anymore.
Reset the grid Enabled event to True when the dialog is closed.
.NET Programming
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.