Results 1 to 4 of 4

Thread: error with datagrid protection level - help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    83

    error with datagrid protection level - help

    I get the following error

    (129): 'System.Windows.Forms.DataGrid.CurrentRow' is inaccessible due to its protection level


    please help me

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: error with datagrid protection level - help

    CurrentRow is not a public member. Have you considered answering the question I asked in your other threads?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    83

    Re: error with datagrid protection level - help

    well....what should i do to make it work then...I've been struggling with this for a while...It is my datagrid....which is throwing this error.

    havent had problem in Visual studio 2005, but now I'm using visual studio 2003...has it got anything to do with that

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: error with datagrid protection level - help

    I'm guessing that you were using a DataGridView in VB 2005. The DataGridView.CurrentRow property is public. The DataGridView doesn't exist in .NET 1.1 and the DataGrid.CurrentRow property is private.

    I've asked a question in your other thread and I've prompted you to answer it in this thread, yet it still remains unanswered. If you really want help then I suggest you provide the information requested by those who are trying to help you.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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