Hey there,
I have a interface which loads the data from the database. It loads the data to the datagridview, and text boxes. When I load the data to the datagrid view how can I make it uneditable so that the validations and other datagridview event scan not be occurred.
And also when I try to add a row to the datagridview I should only be able to edit the row that I just edited. How can I make this possible.
When I try to make the adding row editable the whole datagridview becomes editable.
How can I make only the adding row editable.
thanxxxxxxxxxx
judithSampathwa
-2
Posting Pro in Training
Recommended Answers
Jump to PostI might recommend that you read this page as it should answer your question on how to prevent editing of your DGV.
That link if for a DataGrid and will not apply to the DGV.
how can i implement this
I know you have used and connected …
Jump to PostI checked this out and it is not as simple as I first thought.
For some reason the index of e.Row.Index is not the same value as the row entered after first edit is applied.
You will need to capturee.Row.Index-1
in UserAddedRow.
Also, to enable the edit row you …
Jump to PostI checked this out and it is not as simple as I first thought.
For some reason the index of e.Row.Index is not the same value as the row entered after first edit is applied.
You will need to capturee.Row.Index-1
in UserAddedRow.
Also, to enable the edit row you …
Jump to PostI gave step by step instructions. How hard is it to follow them.
OK. Here it is again, with pictures!After a little thought about what you want, I think you do not need the UserAddedRow event.
Delete the code completely (don't forget to detach the event in the form …
All 13 Replies
nick.crane
342
Veteran Poster
judithSampathwa
-2
Posting Pro in Training
Lusiphur
185
Practically a Posting Shark
Team Colleague
Featured Poster
nick.crane
342
Veteran Poster
Lusiphur
185
Practically a Posting Shark
Team Colleague
Featured Poster
nick.crane
342
Veteran Poster
Geekitygeek
480
Nearly a Posting Virtuoso
judithSampathwa
-2
Posting Pro in Training
judithSampathwa
-2
Posting Pro in Training
Geekitygeek
480
Nearly a Posting Virtuoso
nick.crane
342
Veteran Poster
judithSampathwa
-2
Posting Pro in Training
nick.crane
342
Veteran Poster
Geekitygeek
commented:
couldnt possibly be clearer
+1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.