Home Forums WinForms controls Xceed Grid for WinForms Data Binding (showing specific columns from Data Table) Reply To: Data Binding (showing specific columns from Data Table)

User (Old forums)
Member
Post count: 23064

Instead of setting the <b>CurrentCell</b> property while looping through the rows and columns, just use a variable <i>currentCell</i>.
I see you skip cells that are read-only: add an extra check to also skip the cells that can not be the current cell: <code>if (<i>currentCell</i>.<b>ReadOnly</b> || !<i>currentCell</i>.<b>CanBeCurrent</b>) skip…</code>
After you have found the correct cell, set the <b>CurrentCell</b> property of the gridcontrol to the variable <i>currentCell</i>.

Imported from legacy forums. Posted by Tommy (had 189 views)