Jump to content
Software FX Community
Sign in to follow this  
User (Legacy)

Datagrid edit behavior

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;  }

}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...