Hello, Samuel,
Thank you for reporting this. You can use the following workaround:
public class MyGridViewTextBoxColumn : GridViewTextBoxColumn
{
protected override GridViewColumnValuesCollection GetDistinctValuesWithFilter()
{
int index = this.Index;
bool containsBlanks = false;
GridViewColumnValuesCollection distinctValues = new GridViewColumnValuesCollection();
IEnumerable<GridViewRowInfo> rows = this.OwnerTemplate.Rows;
foreach (GridViewRowInfo row in rows)
{
object cellValue = row.Cells[index].Value;
if (!containsBlanks)
{
containsBlanks = cellValue == null || cellValue == DBNull.Value;
}
if (cellValue == "")
{
cellValue = "(Blanks)";
}
if (!distinctValues.Contains(cellValue))
{
distinctValues.Add(cellValue);
}
}
return distinctValues;
}
}
Regards,
Nadya | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.