Dear Sir/Madam,
Is it possible to add rows when a filter is applied to the GridView?
1. I've added a filter programmatically
2. While this filter is active, I want to add a new row programmatically.
But this doesn't work. I also added
but without success.
Thanks in advance!
Is it possible to add rows when a filter is applied to the GridView?
1. I've added a filter programmatically
| FilterExpression filterDriver = new FilterExpression(); |
| filterDriver.Predicates.Add( |
| FilterExpression.BinaryOperation.AND, |
| GridKnownFunction.Contains, |
| GridFilterCellElement.ParameterName ); |
| filterDriver.Parameters.Add( GridFilterCellElement.ParameterName, varFilter ); |
| gridAssigned.Columns[ COLUMN_DRIVER ].Filter = filterDriver; |
2. While this filter is active, I want to add a new row programmatically.
| GridViewDataRowInfo newRow = gridAssigned.Rows.NewRow(); |
| [...] |
| gridAssigned.Rows.Add( newRow ); |
But this doesn't work. I also added
| gridAssigned.MasterGridViewTemplate.Update( GridUINotifyAction.RowsChanged ); |
Thanks in advance!