Results 1 to 1 of 1

Thread: [RESOLVED] DataGridView exception

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2009
    Posts
    257

    Resolved [RESOLVED] DataGridView exception

    Hi there,

    When I click a row or cell in my DataGridView, I get the following exception:

    Code:
    System.Data.NoNullAllowedException: Column 'cc_log_date' does not allow nulls. at System.Data.DataColumn.CheckNullable(DataRow row) ...
    Also,

    When I click a row header, and then click the 'Delete record' button on the binding navigator, it doesn't delete the row highlight, it deletes the first row in the DataGridView


    Anyone have a clue what's causing this?


    Thanks.


    EDIT:

    I then turned on AllowDBNull on the 'cc_log_date' field on the dataset. After that, I clicked a row, clicked off it and the value in the 'cc_log_date' disappears :S.

    Last edited by r000t; Aug 24th, 2011 at 04:57 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width