且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在datagridview中单击鼠标单击时标记文本

更新时间:2022-12-23 15:34:56

如果单元格的类型是 System.Windows.Forms.DataGridViewTextBoxCell 或您自己的某种类型。请参阅:

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewtextboxcell(v=vs.110).aspx [ ^ ]。



参见:

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell%28v=vs.110%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn%28v=vs.1 10%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewtextboxcolumn(v = vs.110)的.aspx 一> [ ^ ]。







在这里,你会发现一个选择一些文字的方法: http://social.msdn.microsoft.com/Forums/windows/en-US/1170edc5-91c6-4cb6-8ada-525ce6dccbec/datagridviewtextboxcell-how-to - 选择高亮规格编辑期间的特色字符?forum = winforms [ ^ ]。



-SA
This is possible if the type of the cell is System.Windows.Forms.DataGridViewTextBoxCell or some appropriate type of your own. Please see:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewtextboxcell(v=vs.110).aspx[^].

See also:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewtextboxcolumn(v=vs.110).aspx[^].



Here, you will find a recipe for selection of some text: http://social.msdn.microsoft.com/Forums/windows/en-US/1170edc5-91c6-4cb6-8ada-525ce6dccbec/datagridviewtextboxcell-how-to-select-highlight-specific-characters-during-edit?forum=winforms[^].

—SA