or
e.ContextMenu.Items[3]
But how access it by name ? For example, what's the default name for items[0] please ?public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private void Form1_Load(object sender, EventArgs e) | |
{ | |
InitEmployeeGrid(); | |
InitActions(); | |
BindData(); | |
} | |
private void InitEmployeeGrid() | |
{ | |
gridView.MasterGridViewTemplate.AllowAddNewRow = false; | |
gridView.MasterGridViewTemplate.AutoGenerateColumns = false; | |
GridViewTextBoxColumn nameColumn = new GridViewTextBoxColumn(); | |
nameColumn.FieldName = "Name"; | |
nameColumn.HeaderText = "Name"; | |
nameColumn.UniqueName = "nameColumn"; | |
gridView.Columns.Add(nameColumn); | |
} | |
public void InitActions() | |
{ | |
addToolbarButton.Click += new EventHandler(addToolbarButton_Click); | |
cancelToolbarButton.Click += new EventHandler(cancelToolbarButton_Click); | |
} | |
void cancelToolbarButton_Click(object sender, EventArgs e) | |
{ | |
if (gridView.DataSource != null) | |
{ | |
(gridView.DataSource as BindingSource).CancelEdit(); | |
gridView.CancelEdit(); | |
} | |
} | |
void addToolbarButton_Click(object sender, EventArgs e) | |
{ | |
if (gridView.DataSource != null) | |
{ | |
(gridView.DataSource as BindingSource).AddNew(); | |
gridView.BeginEdit(); | |
} | |
} | |
private void BindData() | |
{ | |
employeeBindingSource.DataSource = CreateDataSource(); | |
gridView.DataSource = employeeBindingSource; | |
} | |
private object CreateDataSource() | |
{ | |
List<Employee> result = new List<Employee>(); | |
result.Add(new Employee("Georg")); | |
result.Add(new Employee("Mike")); | |
result.Add(new Employee("Timothy")); | |
return result; | |
} | |
} |
Values on the x and y axis scale if become very large they tend to overlap. How to avoid this?
We need to implement progressive zoom functionality for our Rad charts. Is this supported OR what is the best method to implement it. (The chart type is line chart)
How do i go about it ?