Results 1 to 4 of 4

Thread: How to focus particular cell in Datagridview using C Sharp

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2010
    Posts
    66

    How to focus particular cell in Datagridview using C Sharp

    Can anyone help, how to focus particular cell in datagridview using c sharp

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

    Re: How to focus particular cell in Datagridview using C Sharp

    You assign the desired cell to the CurrentCell property. You can get the desired cell either by indexing the grid itself by column and row, or you can index the Rows collection to get the row and then index its Cells collection, or some other way if appropriate to your app.
    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
    Jul 2010
    Posts
    66

    Re: How to focus particular cell in Datagridview using C Sharp

    Can you give me some example for that?

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

    Re: How to focus particular cell in Datagridview using C Sharp

    What did you not understand about the examples you found when you searched the web? I'm not a big fan of providing "examples" of elementary code like this. It was a fair enough question in the beginning and I have helped you by telling you what you need to look for. You are now quite able to search for existing documentation and examples of those things and then apply the principles to your own project. If you can't find what you need or you don't understand what you find then by all means post back and show us what you've done and where you're stuck and I'll be more than happy to help. I do expect people to make what effirt they can for themselves first though, rather than providing an "example", which basically means write the code for them.
    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

Tags for this Thread

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