hello
i had constructed A Class with properties and a constructor, and a datagridview in form, i want to link this datagridview to list<> or BindingList<>, so that i enter data in the datagridview and store it in the list for further processing! since
i did the following but when running the code the datagridview is empty and not allow editing!
class Entry
{
public int JobsNo { get; set; }
public int ProcTime { get; set; }
public int RelDate { get; set; }
public int DueDate { get; set; }
public Entry(int _JobsNo, int _ProcTime, int _RelDate, int _DueDate)
{
JobsNo = _JobsNo;
ProcTime = _ProcTime;
RelDate = _RelDate;
DueDate = _DueDate;
}
________
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
BindingList<Entry> BList = new BindingList<Entry>();
dataGridView_Entry.DataSource = BList;
}