Canguro.Controller.Grid.GridViewSingleArrayCell.SetValue C# (CSharp) Method

SetValue() protected method

protected SetValue ( int rowIndex, object value ) : bool
rowIndex int
value object
return bool
        protected override bool SetValue(int rowIndex, object value)
        {
            float[] array = null;
            char[] separators = { ' ', ',', ';', '\t', '\n', '\r', '/', '\\', '-', '_', ':' };
            try
            {
                if (value != null)
                {
                    string val = (string)value;
                    string[] vals = val.Split(separators, StringSplitOptions.RemoveEmptyEntries);
                    array = new float[vals.Length];
                    for (int i = 0; i < vals.Length; i++)
                        array[i] = float.Parse(vals[i]);
                }
                return base.SetValue(rowIndex, array);
            }
            catch (FormatException)
            {
                return false;
            }
        }
GridViewSingleArrayCell