From 3610220c2695ce064d7521652ec321b72a2bbfde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B8=D1=82=D0=B0=D0=BD?= Date: Thu, 27 Oct 2022 23:49:38 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=B2=D0=B2=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Новая функция, которая не работает. Планируется её допилить в будущем --- Forms/MainForm.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Forms/MainForm.cs b/Forms/MainForm.cs index faf7194..d7ffa7c 100644 --- a/Forms/MainForm.cs +++ b/Forms/MainForm.cs @@ -465,9 +465,10 @@ private void dgv1_ColumnAdded_1(object sender, DataGridViewColumnEventArgs e) e.Column.DefaultCellStyle.FormatProvider = CultureInfo.InvariantCulture; } + //TODO: починить private void dgv1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { - if (e.ColumnIndex<0||e.RowIndex<0) return; //: WTF index<0??? + /*if (e.ColumnIndex<0||e.RowIndex<0) return; //: WTF index<0??? var cellValue = dgv1[e.ColumnIndex, e.RowIndex].Value; var cellStringValue = cellValue.ToString(); if (string.IsNullOrEmpty(cellStringValue)) return; @@ -478,7 +479,7 @@ private void dgv1_CellValueChanged(object sender, DataGridViewCellEventArgs e) if (cellValue.ToString()[i].IsDoubleT()) break; } if (slicePosition != cellStringValue.Length) //:if cellStringValue changed - dgv1[e.ColumnIndex, e.RowIndex].Value = cellStringValue[..slicePosition]; + dgv1[e.ColumnIndex, e.RowIndex].Value = cellStringValue[..slicePosition];*/ } }