Xceed Community:: CheckBox Column In Grid. checkBox in header. Checkbox WPF DataGrid HI, Im attempting to show/hide a column based on the checked state of a http://xceed.com/CS/tags/data+grid/default.aspxHOME | I have a grid that lists webpages (along with some other info). The first column shows the page Title, but I want a button that toggles between showing Title and URL. I setup URL and Title as the first two columns in the Column Model and I added a toggle button to the paging toolbar that does this: Format columns in the .NET Winforms Datagrid:: a DataGridTableStyle and to add a GridColumnStyle for each column in the grid. aCol4 = new DataGridTextBoxColumn(); // // Hide column 1 by http://www.thescarms.com/dotnet/ColumnStyles.aspxHOME |
this.cm.setHidden(0, !this.cm.isHidden(0)); PlatinumGrid - Showcase - Hidden Columns:: In this demo, although only an ID and Full Name column are shown, the grid has 3 any cell in the grid will display the contents of those hiddens columns for the http://www.platinumgrid.com/hiddencolumns.phpHOME |
this.cm.setHidden(1, !this.cm.isHidden(1));
It works, but the columns keep changing width! Am I doing this right?
How are you defining the widths of the columns? If they are a set width in the column model config, there could be a problem. If you're letting the Grid work out the widths for itself using autoWidth or something, then that's why. If it seems like it's a problem, post your code and we can look through it.
"forceFit" was causing the problem. Thanks!
Get Smart About Monitoring Virtual Machines
Microsoft Gets Ex-Streamly Cozy with U.K.'s MediaWave
|