I use a grid from DevExpress on my form. What I would like is a methode to check
if a user enters an integer-value (f.e: 8) or a double value (f.e: 8,8) into the cells
of column called colValue (fieldname = "Value").
I wrote it in psuedo-code:
if the column fieldname = Value
if (IsMGDL == false || value is a interger-value)
then devide (/) the value with 18
if (IsMGDL == true|| value is a double-value)
then x the value with 18
I have begun to do this myself and this is al I got:
private void gridView1_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e)
if (e.Column.FieldName == "Value")
e.DisplayText = (value / 18).ToString();
else if (Properties.Settings.Default.IsMGDL==true)
e.DisplayText = (value * 18).ToString();
Who can help me?