ATMLCommonLibrary.controls.awb.AWBTextCollectionList.GetRowValues C# (CSharp) Method

GetRowValues() public method

public GetRowValues ( System.Windows.Forms.DataGridViewRow row ) : List
row System.Windows.Forms.DataGridViewRow
return List
        public List<string> GetRowValues(DataGridViewRow row)
        {
            var values = new List<string>();
            IEnumerator ie = row.Cells.GetEnumerator();
            while (ie.MoveNext())
            {
                var cell = ie.Current as DataGridViewTextBoxCell;
                string value = Convert.ToString(cell.Value);
                if (!String.IsNullOrWhiteSpace(value))
                    values.Add(value);
            }
            return values;
        }