We help IT Professionals succeed at work.
Get Started

Set datagridview cell mandatory.

fylix0000
fylix0000 asked
on
934 Views
Last Modified: 2012-05-09
Hi everyone,

I tried to Google the web for quite sometime now but I can't seem to find the solution to the problem I am facing.

I have a typical datagridview, not the web one where I have 5 rows to begin with, any any given time if any column is populated or filled out with a value, the rest of the cells in that row become mandatory fields.  Opposite to text box where you can set the MandatoryField, I can't find a way to set the currentcell or the datagridview[column,cell] or find any of their related attributes to set that specific cell to mandatory.

From reading what I described so far you can see this attribute has to be dynamic, that is if the user decide to blank out all values within a row then all the cell in that row will change from mandatory back to non mandatory.

Any tips or resources on this are greatly appreciated.
Comment
Watch Question
Top Expert 2010
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
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
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