Can anyone help, how to focus particular cell in datagridview using c sharp
Printable View
Can anyone help, 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.
Can you give me some example for that?
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.