Home Forums WPF controls Xceed DataGrid for WPF Bug with column visibility

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22709 |

    When ever I make a column visible on a gridcontrol the cells are blank and unClickable
    //code for context menu of grid
    mi = new MenuItem();
    mi.Header = “Show Columns”;
    int j = -1;
    while (++j < grid.Columns.Count )
    {
    Column c = grid.Columns[j];
    MenuItem smi = new MenuItem();
    smi.Header = c.FieldName;
    Binding vb = new Binding(“Visible”);
    vb.Source = c;
    smi.SetBinding(MenuItem.IsCheckedProperty, vb);
    smi.Click += new RoutedEventHandler(smi_Visible_Click);
    smi.Tag = c;
    mi.Items.Add(smi);
    }
    cm.Items.Add(mi);

    //code for click of menu item
    void smi_Visible_Click(object sender, RoutedEventArgs e)
    {
    MenuItem mi = sender as MenuItem;
    if(mi!=null)
    {
    Column c = mi.Tag as Column;
    if (c != null)
    {
    c.Visible = !c.Visible;
    }
    }
    }

    Imported from legacy forums. Posted by MiddleTommy (had 1832 views)

    Xceed Support
    Member
    Post count: 5658

    This problem has been fixed and will be available in the next release (which is currently targeted at beginning of may).

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2865 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.