Greetings,
how can I achive that a databound dgv after her initial filling NOT the first row selected is?
thx in advance
Printable View
Greetings,
how can I achive that a databound dgv after her initial filling NOT the first row selected is?
thx in advance
Can u explain in brief
@shakti5385
I have a databound dgv. When the application starts the dgv gets all the records from the db. After this the dgv has automaticly the focus on the first row.
What I need is that whatever row is not selected until the user has clicked on a row.
Set allow user to addRow as False
@shakti5385
all properties starting with "AllowUser....." are set = false.
Still the first record in the dgv is highligted :(
As long as the grid is not the first control in the Tab order then you can set its CurrentCell property to Nothing AFTER it is populated. If it is the first control in the Tab order then you can still use the same code but it must be done AFTER the form has been displayed, i.e. in the Shown event handler.
thanks to all