AD
Administrator
Syncfusion Team
August 12, 2005 04:20 PM UTC
You just cannot filter any DataView, you must filter the one being used by the CurrencyManager associated with the grid and the datasource. Additionally, after the grid.EndUpdate call, you may need a grid.refresh call.
To get the dataview, try this code:
CurrencyManager cm = grid.BindingContext[grid.DataSource, grid.DataMember] as CurrencyManager;
DataView dv = cm.List as DataView;
To get the selected text in an actively editing textbox cell, you can use code like:
GridTextBoxCellRenderer cr = grid.CurrentCell.Renderer as GridTextBoxCellRenderer;
string s = cr.TextBox.SelectedText;
KP
Keyur Patel
August 12, 2005 05:08 PM UTC
It worked. Thank you very much.