DataGridView save filtering after reload

前端 未结 4 2121
春和景丽
春和景丽 2021-02-10 20:34

I have some problem with DataGridView in C#.

case is:

I do some update on database then I reload DataGridView with new values:

myDataGridView.Dat         


        
4条回答
  •  情歌与酒
    2021-02-10 21:31

    I came across Adam Nofsinger's answer before I encounterd the problem, but I used it anyway. It works wonderfull.

    Just needed to add these 2 using lines to my class file:

    using System.ComponentModel; 
    using System.Windows.Forms;
    

    Thanks, Geert.

提交回复
热议问题