简体   繁体   English

WinForms DataGridView中的ASP.NET GridView行方法相对应

[英]ASP.NET GridView Row Methods Counterparts in WinForms DataGridView

Are there any ASP.NET GridView's RowCreated , RowDataBound counterpart methods? 是否有任何ASP.NET GridView的RowCreatedRowDataBound对应方法?

All I want is to break a string into lines before displaying. 我只想在显示之前将字符串分成几行。 I've put Environment.NewLine to create a line break but have no success till now. 我已经用Environment.NewLine创建一个换行符,但是到目前为止还没有成功。 So I think I need to RowCreated or RowDataBound , etc. events to make modifications. 所以我认为我需要对RowCreatedRowDataBound等事件进行修改。

仅仅预处理数据会更好吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM