Set Focus on row by cell value

IFlyHigh

I have two grid views namely PositionsReadyListGridView and PositionsNotReadyListGridView.

Now the functionality requirement is on click of Button Set Not Ready the selected item from PositionsReadyListGridView is removed from this list and added to PositionsNotReadyListGridView.

Similarly on click of Button Set Ready the selected item from PositionsNotReadyListGridView is removed from this list and added to PositionsReadyListGridView.

I have implemented this functionality but I am unable to set Focus on the latest row which is added to the either of the GridView.

Is there a way that I can set Focus to the row according to cell values?

For example in both of the Grids I have a column colID which is unique to a row.

Can I somehow use this ID to set Focus to the row added to either PositionsReadyListGridView (on Set Ready click) or PositionsNotReadyListGridView (on Set Not Ready Click)?

Thanks

nempoBu4

You can use LocateByValue method, which returns RowHandle of located row and set this value to FocusedRowHandle property:

int rowHandle = PositionsReadyListGridView.LocateByValue("colID", ID);
if (rowHandle != GridControl.InvalidRowHandle)
    PositionsReadyListGridView.FocusedRowHandle = rowHandle

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

focus in a cell value of DataGridView C# windows forms on adding a row

From Dev

Set focus on the repeated row data while typing duplicate value

From Dev

VBA Excel - Set row background depends on cell value

From Dev

Datables JS set cell value by row index and column index

From Dev

DataTables - How do I get/set the value of a cell in a row?

From Dev

pandas divide row value by aggregated sum with a condition set by other cell

From Dev

How to set datagrid row's background based on variably value in cell

From Dev

How to set the background colour of the rows in a spreadsheet depending on the value of a cell in the row

From Dev

Angular UI Grid set focus to cell on navigate

From Dev

wpf mvvm set focus particular cell of datagrid

From Dev

Set cell value with VBA

From Dev

Set a string to a value in a cell?

From Dev

Validate the cell value when lose focus

From Dev

Set row height of a UITableView according to the cell in that row

From Dev

how to set focus row on XtraGridControl Devexpress?

From Dev

ListView - Set focus on a control in a new row (UWP)

From Dev

Get the cell value of a GridView row

From Dev

openpyxl find cell or row by value

From Dev

Remove row based on cell value

From Dev

Split data by empty row and rename the new sheets by cell value from the original data set

From Dev

How to set background color in a row, when a cell has data over a specific value

From Dev

Is there a way to "check and set" the value of a `std::cell::Cell`?

From Dev

Value of a cell in the same row as the max value in another

From Dev

Match cell value to a combobox row value

From Dev

set cell value as hyperlink in mxGraph

From Dev

Button Click not firing When focus is set to next cell in DataGridView on CellEndEdit

From Dev

Set the Focus on a particular DataGridView Cell when the Form loads

From Dev

Set textfield value without losing the focus

From Dev

Excel - How to use the value of a cell as the row value of another cell?

Related Related

  1. 1

    focus in a cell value of DataGridView C# windows forms on adding a row

  2. 2

    Set focus on the repeated row data while typing duplicate value

  3. 3

    VBA Excel - Set row background depends on cell value

  4. 4

    Datables JS set cell value by row index and column index

  5. 5

    DataTables - How do I get/set the value of a cell in a row?

  6. 6

    pandas divide row value by aggregated sum with a condition set by other cell

  7. 7

    How to set datagrid row's background based on variably value in cell

  8. 8

    How to set the background colour of the rows in a spreadsheet depending on the value of a cell in the row

  9. 9

    Angular UI Grid set focus to cell on navigate

  10. 10

    wpf mvvm set focus particular cell of datagrid

  11. 11

    Set cell value with VBA

  12. 12

    Set a string to a value in a cell?

  13. 13

    Validate the cell value when lose focus

  14. 14

    Set row height of a UITableView according to the cell in that row

  15. 15

    how to set focus row on XtraGridControl Devexpress?

  16. 16

    ListView - Set focus on a control in a new row (UWP)

  17. 17

    Get the cell value of a GridView row

  18. 18

    openpyxl find cell or row by value

  19. 19

    Remove row based on cell value

  20. 20

    Split data by empty row and rename the new sheets by cell value from the original data set

  21. 21

    How to set background color in a row, when a cell has data over a specific value

  22. 22

    Is there a way to "check and set" the value of a `std::cell::Cell`?

  23. 23

    Value of a cell in the same row as the max value in another

  24. 24

    Match cell value to a combobox row value

  25. 25

    set cell value as hyperlink in mxGraph

  26. 26

    Button Click not firing When focus is set to next cell in DataGridView on CellEndEdit

  27. 27

    Set the Focus on a particular DataGridView Cell when the Form loads

  28. 28

    Set textfield value without losing the focus

  29. 29

    Excel - How to use the value of a cell as the row value of another cell?

HotTag

Archive