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

Try this:
– catch the <b>CurrentCellChanged</b> event of the gridcontrol
– in the event handler, call the <b>EnterEdit</b> method of the cell
Here’s some (untested) code:<code>myGridControl.CurrentCellChanged += new EventHandler(myGridControl_CurrentCellChanged);
private void myGridControl_CurrentCellChanged(object sender, EventArgs e)
{
Cell cell = myGridControl.CurrentCell;
if (cell != null && !cell.ReadOnly) cell.EnterEdit();
}</code>

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