c# - Keep row of datagridview clicked by user selected -


I need a snapet code for that code after that code with the DataGridView Selected is double clicked

Right now I am displaying data from a dataset and selection mode select fuller . Any way to set it up?

There are two scenarios to deal with this:

  1. Timer Tuck Always selected row always goes into the first line of the Data Grid view.
  2. Once selected, it is selected, but after the timer, the selected row goes to the first.

Thank you for your help!

A newbie programmer

You get this function timer_tick

  Private zero timer 3 volts (object sender, eventarges e) {int rowIndex; If (dgvOrdini.Rows.Count == 0) // Here I check that DGV blank rowindx = 0; Else // I save the current row index in rowIndex rowIndex = this.dgvOrdini.CurrentCell.RowIndex; ....... ....... if (dgvOrdini.Rows.Count! = 0) // Now if DGV is not blank / I set my line index dgvOrdini.CurrentCell = dgvOrdini.Rows [rowIndex] Am. [0]; }  

The selected row will not change with this method.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -