Completed
Last Updated: 26 Oct 2015 15:39 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 02 Oct 2015 11:34
Category: GridView
Type: Bug Report
0
FIX. RadGridView - ParserException when filtering a column containing "@" in its name
To reproduce:

public Form1()
{
    InitializeComponent();
    DataTable dt = new DataTable();
    dt.Columns.Add("Col@", typeof(string));
    dt.Rows.Add("Unit");
    this.radGridView1.DataSource = dt;

    this.radGridView1.EnableFiltering = true;
    this.radGridView1.BestFitColumns();
}

Workaround: modify the Name of each column in order to remove the "@" symbol:

foreach (GridViewColumn c in this.radGridView1.Columns)
            {
                c.Name = c.Name.Replace("@", "");
            }
Attached Files:
0 comments