SampleApp.MainForm.bindingSource1_CurrentChanged C# (CSharp) Method

bindingSource1_CurrentChanged() private method

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