Jan 04, 2011, 6:35 AM
[CLOSED] GridPanel get Column in ColumnModel by ID
Hi,
is there some way instead of only using index
If i use this code:
Kind regards.
is there some way instead of only using index
this.GridPanel1.ColumnModel.SetHidden(2, true);
to get the correct Column by ID (without looping) likethis.GridPanel1.ColumnModel.SetHidden("ColumnID", true);
this.GridPanel1.ColumnModel.Columns["ColumnID"].Hidden = true;
this.GridPanel1.ColumnModel.Columns[this.GridPanel1.ColumnModel.findColumnIndex("ColumnID")].Hidden = true;
if not, whats the best way of looping over the set of columns on runtime?If i use this code:
foreach (var col in GridPanel1.ColumnModel.Columns)
{
if (col.ColumnID.Equals("ID_XYZ"))
{
I receive this Exception: Unable to cast object of type 'Ext.Net.CheckColumn' to type 'Ext.Net.Column'.Kind regards.
Last edited by Daniil; Jan 09, 2011 at 12:06 PM.
Reason: [CLOSED]