开发者

DataGridView Event - which one to choose

开发者 https://www.devze.com 2022-12-10 00:06 出处:网络
I\'m looking for an event that occurs right right after loading and after sorting. I have a piece of code that colors some of the Rows in a DataGridView control. But when I sort the style changes are

I'm looking for an event that occurs right right after loading and after sorting.

I have a piece of code that colors some of the Rows in a DataGridView control. But when I sort the style changes are lost. I need the right event to tap into to redo the coloration step after the load/sort events. Trying to right clean code 开发者_开发问答... so I was looking for a single event that I could use to cover both situations.


DataGridView.Sorted executes right after a sort.

Maybe sort the data in the control after loading initially? That way you would call Sorted on the load.

0

精彩评论

暂无评论...
验证码 换一张
取 消