Results 1 to 3 of 3

Thread: [RESOLVED] another conversion problem

  1. #1

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Resolved [RESOLVED] another conversion problem

    sorry last one for a while (i hope)

    im running into an blue squigle saying

    No overload for method 'this' takes '1' arguments

    for this code



    ( i know its pretty sloppy but i was expermenting trying to pick it apart to see where the error was coming from)
    Code:
     
     DataGridView invoicedgv = (DataGridView)invoicebindingsource[index];
                        String invoiceCheck = invoicedgv["name"].ToString();
                        invoiceCheck.Trim();
                        if (string.IsNullOrEmpty(invoiceCheck))
                        {
                         invoicebindingsource.RemoveAt(index);
                        }
    thanks so much

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

    Re: another conversion problem

    You're indexing a DataGridView. What's the default property (VB) or indexer (C#) of the DataGridView class? The doco would tell you and so would Intellisense.
    Attached Images Attached Images  
    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
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: another conversion problem

    sorry i guess i missed that

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