开发者

DataGridView Event - which one to choose

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜