private void bindingSource1_CurrentChanged(object sender, EventArgs e)
{
if (dgvDistributionMeasures.CurrentRow != null)
{
DataGridViewRow row = (DataGridViewRow)dgvDistributionMeasures.CurrentRow;
dataHistogramView1.DataSource =
((DescriptiveMeasures)row.DataBoundItem).Samples;
}
}