Help with Updating my Fields in my DataGrid

Results 1 to 2 of 2

Thread: Help with Updating my Fields in my DataGrid

  1. #1
    Join Date
    Dec 1969

    Default Help with Updating my Fields in my DataGrid

    Hi! I&#039;m new to .NET so please don&#039;t yell at me if this is old hat to you all.. :-) I&#039;m so close, my error is happening in the last sub routine I coded. <BR><BR>I&#039;m getting the following error after changing the data in my row and hitting Update.<BR><BR>BC30311: Value of type &#039;System.Data.DataColumn&#039; cannot be converted to &#039;1-dimensional array of System.Data.DataColumn&#039;<BR><BR>The problem is happening with the following line of code...<BR><BR>tbl.PrimaryKey = New DataColumn()<BR> {_<BR> tbl.Columns("FaqID") _<BR> }<BR>My feeling is that the problem lies within my saying <BR><BR>Private Sub UpdateFaq(ByVal FaqID As Long, ByVal Answer As String)<BR><BR>My FaqID field is the primary key and is an Integer with a max length of 4. Any idea what I can do to get this to work? I&#039;m so close!!!<BR><BR>Your help is GREATLY appreciated!<BR><BR>Sincerely,<BR>Shannon<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Post more codes. <eop>


Posting Permissions

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