Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Windows forms databound datagridview: editable as well as noneditable

Avatar of rishaan
rishaan asked on
C#
3 Comments1 Solution377 ViewsLast Modified:
My datagridview has to have noneditable rows except for the ones that are new.
I have set AllowUsersToAddRows true for the grid. This adds a row at the bottom and user can enter the data. I want the new rows to be editable. Also the copy and pasted rows should be editable. So I added a flag to the database . If this flag is 'Y' I want to make those rows noneditable but for the new rows I want to initially set the flag to 'N'.
In which datagridview event  should I set if flg="N" the datagridview.currentrow.Readonly=false ;
I am a newbie...please help..
ASKER CERTIFIED SOLUTION
Avatar of surajguptha
surajgupthaFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers