Hello,
I Use winform Q3 2007.
I want to disable filtering feature of an ImageColumns. So i set ;
gridViewImageColumn1.Filter.Function = GridKnownFunction.NoFilter;
But, firstly it doesnt prevent user inputing filter text box of the column,
secondly and most important one, when you input something in the filter textbox of the image coloumn and select some menu item in the filtering context menu ( i mean "equal", "greater", ...menu ) it still wants to filter the expression and so program fails with
System.Data.SyntaxErrorException: The expression contains invalid name
message.
for now, I overcome this case by coding this,
private
void BLSecimDataGrid_MasterGridViewTemplate_FilterChanging(object sender, FilterChangingEventArgs e)
{
if (sender is Telerik.WinControls.UI.GridViewImageColumn)
{
GridViewImageColumn gridViewImageColumn = ((Telerik.WinControls.UI.GridViewImageColumn)sender;
if (!string.IsNullOrEmpty(e.NewStringValue)) e.Cancel = true;
}
}
i think it's a bug and i want to know, if there is another solution without coding and just setting some property :)
Thank you
Serkan APUL.