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 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.