How to add row to table in c#

How to add row to table in c#

public static void AddRowToTable(DataTable _dt, string val, string txt, string _str)
        {
            if (_str.Length > 0)
            {
                DataRow r;
                r = _dt.NewRow();
                r[txt] = _str;
                r[val] = -1;
                _dt.Rows.Add(r);
            }
        }

2020-01-31