error??

I can't find that error in my code. Can anyone tell where to look

ArgumentException was unhandled

Cannot bind to the property or column Data on the DataSource.
Parameter name: dataMember



Answer this question

error??

  • Stan B

    I'm guessing that you need to add a '.tostring' after all the datetimepicker values.

  • kumarangopi

    data type is received from datetimepicker
  • Shivangi Chaudhari

    You’ll need to provide a bit more information such as the data type of the Data column of the table that you are binding to for the DataMember of whatever object you are trying to display your data within.

  • CBueche

    thats what I'm inserting in my database:

    Dim datasave As New MaintenanceDatabaseDataSetTableAdapters.MaintenanceTableTableAdapter

    If ComboBox1.SelectedValue <> 0 Then datasave.Insert(HoursWorkedTextBox1.Text, HoursWorkedTextBox11.Text, ComboBox1.SelectedValue, DateTimePicker1.Value.Month, DateTimePicker1.Value.Day, DateTimePicker1.Value.Year, FirstNameTextBox.Text, LastNameTextBox.Text, DescriptionTextBox1.Text, ComboBox1.Text)


  • error??