Results 1 to 2 of 2

Thread: .net 2.0 Datagridview

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Location
    Karachi
    Posts
    551

    .net 2.0 Datagridview

    I m woring on .Net 2.0 desktop application and i have checkbox column in datagridview. I want to check that whether the checkbox is checked or not.

    or we an say i want to findcontrol (checbox) in each column .

    what should i do ...

    any urgent help would be highly appreciate............

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

    Re: .net 2.0 Datagridview

    No, you don't want to find any controls in any columns. The check box in each cell is just a UI. It's a visual representation of the value stored in the cell. With check box cells that value will generally be either True or False. You simply get the Value property of the cell of interest.

    That said, if your grid is bound then you should better get the underlying bound item via the BindingSource and get the appropriate field value from that.
    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