AddClass data = new AddClass(234,"ABC"); dgtest.Items.Add(data);
class AddClass { public int Acol { get; set; } public string Bcol { get; set; } public AddClass() { } public AddClass(int a, string b) { this.Acol = a; this.Bcol = b; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)