Hi All,
I am really new to using C1TrueDbGrid. I have Widows form that display a list of clients and I am able to change their rating with no problem. Right now I am getting the number as 0.1000000000, 0.2000000000 and so on. I did change the NumberFormat property to 0.0000 which displays only 4 digits after the decimal point. Now is there any way that I can allow only 4 digits after the decimal point when modifying or adding new record. Is there any event can be called to check the entering value? or is there any property that I can change so it restricts the entry. Please advise me on this. Thank you.
Hi, you can use the EditMask (or InputMask in designer) to handle this
C1TrueDBGrid1.Columns(1).EditMask = "0.0000"
Hope that helps,Greg L
Hi, thanks for the reply. I have tried that earlier. Used the InputMask to "0.0000" what happens is that when I enter 0.2000 it displays as 2000.0000. Is there any event handler that can check if there are 4 decimal points exist or not? Like TextChanged? I have tried few methods like Change but I am not able to retrieve the the value or column index. Is there anyother alternative ways to overcome this issue? Thank you.
I guess it is tough to make this happen with the C1TrueDbGrid. Hopefully someone can help me with it.
I have played around with the Component and I have made it work. All I did was changed the Number Format to "Edit Mask" and EditMask to 0.0000 and UpdateEditMask to True.
works like a charm.