English 中文(简体)
使用Box的电子数据网中的立列
原标题:Filter columns in flex datagrid using CheckBox

我有4栏的弹性数据网。 我有4个核对箱子,含有数据网的栏目,作为标签。 我只希望数据网显示在压缩箱中选择的几栏。 谁能告诉我,如何对数据网的栏目进行过滤?

提前感谢。

问题回答

您可使用<代码>.columns财产操纵数据网所附各栏。 考虑到这一方法是一个跳板,并将数据网各栏目清单的复印件归还给您,因此,如果你操纵其内容,你必须使用等同的成套设备将这些改动重新应用于数据网。

<mx:DataGrid id="dg" />

《行动章程》

var columns:Array = dg.column;
columns.push(new DataGridColumn("hello"));
dg.columns = columns;

如果是你的话,你可以把一栏主列单放在一个单独的阵列上,并将之推到数据网上,作为用户的制衡,并将之从您的星号名单上剔除。

您可以通过<<>清单>查询在您的船上检查的目录,并按顺序排列其“密码”。

HTH





相关问题
WPF Datagrid, Setting the background of combox popup

I would like to change the color of the popup background when using a DatagridComboboxColumn in the WPF Toolkit datagrid. I ve edited the Template for a normal Combobox and it works great for selected ...

How to insert ComboBox item into ListBox? [winforms]

The question is very simple, How to insert ComboBox selected item into ListBox using c#? I have tried with this: listbox.Items.Add(combobox.SelectedItem); and some other permutations but it always ...

How do I bind a ComboBox to a one column list

I ve seen how to bind a ComboBox to a list that has columns like this: ItemsSource="{Binding Path=Entries}" DisplayMemberPath="Name" SelectedValuePath="Name" SelectedValue="{Binding Path=Entry}" But ...

Wpf Combobox Limit to List

We are using Wpf Combobox to allow the user to do the following things: 1) select items by typing in the first few characters 2) auto complete the entry by filtering the list 3) suggesting the first ...

热门标签