I have a Datagridview with two columns. First one is Marks of the student and second one is grade. When I enter marks in Datagridview I want the grade column to automatically fill the respective grading system value.

Greater than 80 - A
Greater than 60 - B
Less than 50 - F

Thank you so much for your help.

In C# when I want to have an action or code execute on change I use the onchange method/handler to run my code. It's similar to how you handle click events.

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.