Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to temporarily make one cell in datagridview as read only?

$
0
0

Greetings community,

Let’s say that you have datagridview with 3 columns: “x”, “y” and “result”. You have to enter x and y and result should be x*y or y/x depending on check state of one check box which is in the form, so you cannot have simple calculated column but you have to calculate it manually.

I was wondering if I can make cell in column “y” read-only until user populate “x” column with value different than 0.

Any thoughts?


Viewing all articles
Browse latest Browse all 2535

Trending Articles