I have a DataGridView on a form with a number of columns that are calculated and hence set to readonly. What I wanted was to have these columns skipped whenever the user entered them. I thought to use the OnEnter event to test the readonly attribute of the current cell and set the currentcell to the next one. A problem arose using this methed in that by changing the currentcell in the event handler, I was invoking the non-reentrant changedcell method. Instead I resorted to a SendKeys.Send("{tab}") instead and this appears to work.
W
WILLIAM MAIN
@WILLIAM MAIN
Posts
-
Skip readonly columns in DataGridView -
what is this used for --> @I also use it for creating multiline strings string sql = @" SELECT * FROM TABLE WHERE THIS=@THAT ";