Friday, July 31, 2009

In C#, how can you access only the selected text in a cell defined by the DataGridTextBoxColumn class?

For example, if a textbox in a DataGrid contains "little" but the user has only selected "li", how can I see programmatically that the user selected "li"?

In C#, how can you access only the selected text in a cell defined by the DataGridTextBoxColumn class?
Unfortunately, .NET doesn't have this as a built-in property or method for the DataGridTextBox control.





If you are working on a Web page, you could access that information client-side via JavaScript's Selected property.


No comments:

Post a Comment