Jump to content
Software FX Community

Datagrid edit behavior


User (Legacy)

Recommended Posts

There is no API that put the datagrid into edit mode.

The follwoing will do it but it uses internal, undocumented API that may change in future versions and it is not supported.

Use it at your own risk :)

private void chart1_MouseClick (object sender,HitTestEventArgs e) {  if ((e.HitType == HitType.DataGrid) && (e.Series >= 0) && (e.Point >= 0)) { MouseEventArgs me = new MouseEventArgs(MouseButtons.Left,2,e.X,e.Y,0); ((ChartFX.WinForms.Internal.IDockableBarMouse) chart1.DataGrid).OnMouseDown(me); e.Handled = true;  }

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...