Hi Vicko,
Issue 1: Filter stop working.
The reason for getting this behavior is that CurrentElement is not resetted properly. One way you can resolve this issue by handling the TableControlCurrentCellStartEdinting event of the grid and set CurrentElement to null in a GridTable. Here is a code snippet.
void gridGroupingControl1_TableControlCurrentCellStartEditing(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
GridTextBoxCellRenderer cr = cc.Renderer as GridTextBoxCellRenderer;
if (cr != null)
{
GridTableCellStyleInfo style = cr.CurrentStyle as GridTableCellStyleInfo;
if (style.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.FilterBar
&& style.CellType == "TextBox")
{
e.TableControl.Table.CurrentElement = null;
}
}
}
Issue 2: Filter Text problem
You can do this by using the Hashtable for each column of the Filterbar row and draw the corresponding filter string in a TableControlDrawCellDisplayText event of the grid. Please refer to the attached sample for more details and let me know if this helps.
Sample :
Filter.zipBest regards,
Haneef