Home - Forums-.NET - FlyGrid.Net (Windows Forms) - SwitchToEditMode

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

SwitchToEditMode
Link Posted: 17-May-2006 12:06
[quote="JimPalmer"]Thank you for your prompt responses and suggestions!
To determine the product version, I examined the Product Version property of NineRays.FlyGrid.DLL. It says 1.4.0.40558. The format looks different from the one you listed (v1.4.0.6). Do I need to look elsewhere?

Try today update (v1.4.0.4102 for .Net 1.1 and v.1.4.0.4318 for .Net 2.0)

ActivePort.BeginEdit() still isn't working for me.
When I use the arrow key to move up or down the column, all of the cells in the column behave as if they are read-only cells. I.e., the writable cells have the same appearance as the read-only cells and they don't respond typed values or F2. However, if I type the Left Arrow key when a writable cell is selected, the cell starts behaving as if it is writable.

FYI, I am using the following to determine whether the cell is read-only.
Private Function FlyGrid1_IsReadOnly(ByVal sender As System.Object, ByVal node As NineRays.Windows.Forms.Data.NodeBase) As Boolean Handles FlyGrid1.IsReadOnly
  Dim row As DataRow = node.Value.Row
  Return DetermineWhetherARowIsReadOnly(row)
End Function



I've tried following simple code for testing:
[c#]
private bool flyGrid_IsReadOnly(object sender, NodeBase node)
{
  //unlocks even rows
  int index = node.Index;
  return index % 2 != 0;
}


And received correct results, see the screenshots:

1. Even row, is editable

2. Uneven - readonly


If you need to transfer focus to the next edtiable cell you should use node.GetNext()/GetPrev() methods and examine on readolny by OnIsReadOnly(NodeBase node) method.
Link Posted: 18-May-2006 07:38
I finally tracked down the problem. The grid exhibits the funky behavior that I described when the MultiSelect option is enabled. It works as expected if the MultiSelect option is disabled.

One can reproduce the problem by changing a couple of options on the grid in your databoundGridForm example. First, enable Wants Tabs. Run the program and test the behavior. It works as expected. Now enable MultiSelect and test the behavior. The first tab commits the edit, but does not start editing in the next cell. The second tab changes focus to the Use Stylist check box.

Please fix this soon. I need MultiSelect to copy the values from multiple rows.

Many thanks for all of your help so far.
Link Posted: 18-May-2006 09:19
Thanks for comments, we'll fix this incorrecntess to the nearest FlyGrid.Net update, to beginning of next week.