Hi all in the thread,
One can inherit from DataGridTextBoxColumn and subscribe to the hosted text
box's TextChanged event to perform instant input validation (for example,
when only alphanumeric characters should be allowed).
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Aiwen Guo [MSFT]" <ab*@online.microsoft.com> wrote in message
news:t6**************@cpmsftngxa06.phx.gbl...
Hey, Rob:
This columnChanging events will only be fired when you try to commit the
change to the Dataset, by typing in the grid can't get this event to fire,
you have to move the focus to another cell to try to commit the change.
I am not sure how you want to validate when the user just starts to type,
If the validation starts at the beginning of an input typing, how can you
know what the proposed value is? if it's like a permission check, you can
try to set the readonly property of the column so the user won't be able
to input new values.
Thanks.
Aiwen
VB Data Team
This posting is provided "AS IS" with no warranties, and confers no
rights.