Winforms Datagridview Object Change

Hi – I have a datagridview that I have set to a list of objects. When the user creates a new list, or modifies the underlying object, I say datagridview1.datasource = null; datagridview1.datasource = myobject.sublist; Unfortunately, this seems to be causing unpredictable crashes when the user clicks on the datagridview after a change to the […]

Problem with inserting data

hello i have been experiencing some problems with inserting data into a table in the database. i keep getting this error: Cannot insert the value NULL into column ‘location_ID’, table even though i did set the location ID on auto increment this is the code im using to insert: private void addbtn_Click(object sender, EventArgs e) […]