修复上传问题
This commit is contained in:
1 parent
c0b7c2d986
commit
b62deb2e99
4 files changed
+121
-115
No files matched your search
@@ -736,7 +736,7 @@ namespace TemuKJD.Extension
|
||||
|
||||
public static void AddImgColumn(this DataGridView dgv, string imgColumn, string imgPathColumn, bool isSetHttpsHttp = true)
|
||||
{
|
||||
bool isScroll = false;
|
||||
//bool isScroll = false;
|
||||
CancellationTokenSource cancelToken = new CancellationTokenSource();
|
||||
|
||||
dgv.Scroll += (s, e) =>
|
||||
@@ -782,7 +782,10 @@ namespace TemuKJD.Extension
|
||||
//while (isScroll && 1 == 1)
|
||||
// Thread.Sleep(1);
|
||||
//isScroll = true;
|
||||
ShowDgvImg(cancelToken, dgv, new List<DataGridViewRow> { dgv.Rows[e.RowIndex] }, imgColumn, imgPathColumn, isSetHttpsHttp);
|
||||
if (e.RowIndex < (dgv.FirstDisplayedScrollingRowIndex + dgv.DisplayedRowCount(true)))
|
||||
ShowDgvImg(cancelToken, dgv, dgv.Rows.Cast<DataGridViewRow>().ToList(), imgColumn, imgPathColumn, isSetHttpsHttp);
|
||||
else
|
||||
ShowDgvImg(cancelToken, dgv, new List<DataGridViewRow> { dgv.Rows[e.RowIndex] }, imgColumn, imgPathColumn, isSetHttpsHttp);
|
||||
//isScroll = false;
|
||||
}, cancelToken.Token);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user