APG.CodeHelper.DataGridViewHelper.PutBackDateTimeValue C# (CSharp) Метод

PutBackDateTimeValue() приватный статический Метод

private static PutBackDateTimeValue ( System.Windows.Forms.DataGridView dataGridView, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
dataGridView System.Windows.Forms.DataGridView
e System.Windows.Forms.DataGridViewCellEventArgs
Результат void
        private static void PutBackDateTimeValue(DataGridView dataGridView, DataGridViewCellEventArgs e)
        {
            if (dtpEventDatePicker != null)
            {
                if ((e.ColumnIndex != -1) && (e.RowIndex != -1))
                {
                    if ((dataGridView.Rows.Count > 0) && (dataGridView.ColumnCount > 0))
                    {
                        if (dataGridView.Columns[e.ColumnIndex].ValueType == typeof(DateTime))
                        {
                            dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = dtpEventDatePicker.Value;

                        }
                    }
                }
            }
        }