Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- peaks
- dart:io
- debug banner
- debugShowCheckedModeBanner
- TCPIP
- flutter
- Properties.Settings.Default
- ListView.build
- flutter tcpip server
- Server
- flutter button
- flutter tcpip client
- c
- ubuntu 19 한글 입력
- showDialog
- AlertDialog
- array
- Listview filtering
Archives
- Today
- Total
Louie De Janeiru
DataGridView double buffered enable 본문
1. Creates class file
- extension.cs
2. Copy below
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SmartSensorScreen_Mon
{
public static class ExtensionMethods
{
public static void DoubleBuffered(this DataGridView dgv, bool setting)
{
Type dgvType = dgv.GetType();
PropertyInfo pi = dgvType.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.SetProperty);
pi.SetValue(dgv, setting, null);
}
}
}
3. Add below code
dg.DoubleBuffered(true);
'C#' 카테고리의 다른 글
Screen Record (0) | 2020.09.16 |
---|---|
Properties.Settings.Default (0) | 2019.09.24 |
Decimal point handling (0) | 2019.09.23 |
Textbox에 숫자만 입력받기 (0) | 2019.02.11 |
TextBox text null check (0) | 2018.11.13 |