When you work with a datagridview you deal with rows and rowindex and cells and if it's a bound datagridview you have to remember to get the name of the column correct or it won't work...blah, blah, blah.
And sometimes all you want is to not have the datagridview be displayed with the first row selected (default is to highlight it in blue), which is really quite simple but for some reason I keep forgetting it:
datagridview.clearselection()
That's it.
No comments:
Post a Comment