I am validating my textbox for allowing decimal values ad 12.00, 12.50.
My code is
double x;
double.TryParse(tb.Text, out x);
tb.Text = x.ToString("0.00");
It will add decimal places in textbox when it leaves. As this I want to add .00 to my datagrid view cell for my particular cell. Thank you
I think you need to display values up to 2 decimal places in your
DataGridViewCellyou can try by setting the DefaultCellStyle property of the column to
N2(2 decimal places)