반응형

C# -- datagridview 에서 virtual mode 사용하기



참고 : https://docs.microsoft.com/ko-kr/dotnet/framework/winforms/controls/implementing-virtual-mode-wf-datagridview-control

           ---> row-level commit scope


        https://docs.microsoft.com/ko-kr/dotnet/api/system.windows.forms.datagridview.virtualmode?view=netframework-4.8

          ---> cell-level commit scope


        https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/virtual-mode-in-the-windows-forms-datagridview-control




** VirtualMode 전용 event


   -- 읽기 전용인 경우는, CellValueNeeded event 만 사용하면 됨.





<< 실행 화면 1 -- row-level commit scope >>




<< 실행 화면 2 -- cell-level commit scope >>




<< 소스 1 -- row-level commit scope >>




<< 소스 2 -- cell-level commit scope >>





반응형
Posted by 자유프로그램
,