Can someone help me ?
i want datagridview display data
datagridview1.datasource = _db.Students.Tolist();
and it display on data grid. and has a button.if the button click, datagridview1 will add the rows with no data. And the User fill the rows. when it done it will save to database.
How to make it work ?
If I remember correctly, DataGridView has a .Rows.Add property, like this:
and
You should convert your data into an array first.
Take a look here: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rows.aspx