I have a DataGridView named "dgPins" in a Uer Interface. The columns are as shown below.
Now I'm looking to accomplish 2 tasks with this DataGridView.
- To limit the input size for the cells under column "PIN" to 4 digit numeric only.
I know for TextBox there's a property MaxLength where you can set the input length. Is there a simpler way to do it for DGVs too? And how to set the value type to numeric? I found a rollback solution here. But its not the most convenient answer for me.
- How to make an event handler to reject duplicate inputs for the same column cells? What even should I use to program this?