Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1175
Reset Row and Column labels after manually setting them
posted

This is the code I'm using to change the row labels:

string[ strArray = new string[lstXAxisSrsLbls.Items.Count];

lstXAxisSrsLbls.Items.CopyTo(strArray, 0);

strArray[lstXAxisSrsLbls.SelectedIndex] = txtXAxisSrsLbl.Text;

ctrlUltraChart.Data.SetRowLabels(strArray);

int intSelectedItem = lstXAxisSrsLbls.SelectedIndex;

lstXAxisSrsLbls.DataSource = strArray;

lstXAxisSrsLbls.SelectedIndex = intSelectedItem;

 

is there anyway to reset the values back to the default values or clear out the changes I made so that I can add another column or row?