Groups | Blog | Home
all groups > vb.net > june 2007 >

vb.net : Prevent row change Datagridview



Larry Smith
6/6/2007 2:05:09 PM
[quoted text, click to view]

Did you check these out:

DataGridView.CellValidating
DataGridView.RowValidating

Also see section 4.1 here (written by the "DataGridView" manager at MSFT):

http://www.windowsclient.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20FAQ.doc

Dinis Correia
6/6/2007 6:31:04 PM
Hi all,
How do I prevent row change in a Datagridview? Is there something like a
BeforeCurrentRowChanged with an eventarg that could prevent from changing
current row?

I'm using datagridview bind with a datatable.

(I think old ADO had an event that could achieve this!)

TIA,
DC
cjard
6/7/2007 7:27:05 AM
[quoted text, click to view]

Make it read only.

[quoted text, click to view]
Define "Changing the current row" - do you mean edit the row, or alter
which row is current?

AddThis Social Bookmark Button