Marc Posted January 15, 2008 Report Share Posted January 15, 2008 Is there a way to set readonly attribut only on header of a Datagrid. In other words, I have a datagrid, but I don't want that the user can edit values of X axis (header valeus of datagrid) Thanks Marc Quote Link to comment Share on other sites More sharing options...
Frank Posted January 17, 2008 Report Share Posted January 17, 2008 You can not make the DataGrid only partially read-only, however you can capture the DataChangedByUser vent and ignore changes to part of the data. For example: private void chart1_DataChangedByUser (object sender,PointLabelEventArgs e) { if (e.Axis == chart1.AxisX) e.Handled = true; } Will ignore changes to the X-Values Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.