private void treeList1_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e) { // DATAVALUE: FOREACH COLUMN CONFIGED IN THE TREELIST... if (e.IsCheckState) { return; } if (e.Column == this.colID) { e.CellData = e.Node; return; } DataTable dt = _cfg.getConfigTable(); if (e.Column == this.colName) { DataRow[] select = dt.Select("ID = " + e.Node, "Name ASC", DataViewRowState.CurrentRows); e.CellData = select[0]["Name"]; return; } if (e.Column == this.colPreview) { DataRow[] select = dt.Select("ID = " + e.Node, "Name ASC", DataViewRowState.CurrentRows); e.CellData = select[0]["Preview"]; return; } }
public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { OrgTreeItem obj = info.Node as OrgTreeItem; switch (info.Column.FieldName) { case "ID": info.CellData = obj.ID; break; case "FatherID": info.CellData = obj.FatherID; break; case "Name": info.CellData = obj.Name; break; case "FullName": info.CellData = obj.FullName; break; case "DWDM": info.CellData = obj.DWDM; break; } }
void OnTreeListVirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e) { if (e.Node is TreeListRootObj || e.Node is TreeListLeaf) { e.CellData = e.Node.ToString(); } }
public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { if (info.Node is DbSchemaBaseNode node) { info.CellData = node.Text; } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { if (info.Column.VisibleIndex >= 0) { info.CellData = cellsCore[info.Column.VisibleIndex]; } }
private void treeListFileExplorer_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e) { var di = new DirectoryInfo((string)e.Node); if (e.Column == treeListColumnFoldery) { e.CellData = di.Name; } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { SpreadsheetNode obj = info.Node as SpreadsheetNode; switch (info.Column.Caption) { case "Name": info.CellData = obj.Name; break; } }
public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { TableMemberInfo tmInfo = info.Node as TableMemberInfo; switch (info.Column.FieldName) { case "FieldName": info.CellData = tmInfo.FieldName; break; case "PropertyType": if (tmInfo.PropertyType != null) { info.CellData = tmInfo.PropertyType.Name.ToString(); } else { info.CellData = "null"; } break; case "PropertyTypeName": info.CellData = tmInfo.PropertyTypeName; break; case "TypeName": info.CellData = tmInfo.TypeName; break; case "Caption": info.CellData = tmInfo.Caption; break; case "IsXPBaseObject": info.CellData = tmInfo.IsXPBaseObject; break; case "IsXPCollection": info.CellData = tmInfo.IsXPCollection; break; case "IsUsed": info.CellData = tmInfo.IsUsed; break; case "ImageIndex": info.CellData = tmInfo.ImageIndex; break; case "HashCode": info.CellData = tmInfo.HashCode; break; } }
public void VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e) { // DATAVALUE: FOREACH COLUMN CONFIGED IN THE TREELIST... if (e.IsCheckState) { return; } DataRow[] row = this.RowByID((int)e.Node); if (e.Column == this.CreationTreeListColumn) { e.CellData = row[0][CREATION_FIELD_NM]; return; } if (e.Column == this.IDTreeListColumn) { e.CellData = row[0][ID_FIELD_NM]; return; } if (e.Column == this.ParentIDTreeListColumn) { e.CellData = row[0][PARENTID_FIELD_NM]; return; } if (e.Column == this.IsFolderTreeListColumn) { e.CellData = row[0][ISFOLDER_FIELD_NM]; return; } if (e.Column == this.NameTreeListColumn) { e.CellData = row[0][NAME_FIELD_NM]; return; } if (e.Column == this.TypeTreeListColumn) { e.CellData = row[0][TYPE_FIELD_NM]; return; } if (e.Column == this.UriTreeListColumn) { e.CellData = row[0][URI_FIELD_NM]; return; } if (e.Column == this.PreviewTreeListColumn) { e.CellData = row[0][PREVIEW_FIELD_NM]; return; } if (e.Column == this.DescriptionTreeListColumn) { e.CellData = row[0][DESCRIPTION_FIELD_NM]; return; } }
private void VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e) { if ((e.Node as DataRow).Table.Columns[e.Column.FieldName] != null) { object value = (e.Node as DataRow)[e.Column.FieldName]; if (value != null) { e.CellData = value; } } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { MimicTreeNode obj = info.Node as MimicTreeNode; switch (info.Column.Caption) { case "Name": info.CellData = obj.ThisNode.Name; break; } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { Project obj = info.Node as Project; switch (info.Column.FieldName) { case "Name": info.CellData = obj.Name; break; } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue( VirtualTreeGetCellValueInfo info) { if (info.Column.FieldName == GUIConstants.TreeListNameColumn) { info.CellData = ((INode)info.Node).NodeName; } else if (info.Column.FieldName == GUIConstants.TreeListOriginalNoteColumnName) { info.CellData = (INode)info.Node; } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { foreach (String strField in info.Column.FieldName.Split(';')) { PropertyInfo proInfo = InnerData.GetType().GetProperty(info.Column.FieldName); if (proInfo != null) { info.CellData = proInfo.GetValue(InnerData, null); return; } } }
void IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { Guard.ArgumentNotNull(info, nameof(info)); var checkItem = (CheckItem)info.Node; var prop = typeof(CheckItem).GetProperty(info.Column.FieldName); if (prop != null) { info.CellData = prop.GetValue(checkItem); } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { var obj = info.Node as ReturnShopObj; switch (info.Column.FieldName) { case "Name": if (obj != null) { info.CellData = obj; } break; } }
private void treeList1_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e) { DirectoryInfo di = new DirectoryInfo((string)e.Node); if (e.Column == colName) { e.CellData = di.Name; return; } if (e.Column == colType) { if (IsDrive((string)e.Node)) { e.CellData = "Drive"; } else if (!IsFile(di)) { e.CellData = "Folder"; } else { e.CellData = "File"; } if (e.Column == colFullPath) { e.CellData = (string)e.Node; } return; } if (e.Column == colSize) { if (IsFile(di)) { e.CellData = new FileInfo((string)e.Node).Length; } else { e.CellData = null; } return; } if (e.Column == colFullPath) { e.CellData = (string)e.Node; } }
public override void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { var obj = info.Node as OrderHeaderData; switch (info.Column.FieldName) { case "Name": if (obj != null) { info.CellData = obj; } break; } }
private void OnGetCellValue(object sender, VirtualTreeGetCellValueInfo e) { WmsLayer layer = e.Node as WmsLayer; if (layer == null) { return; } if (e.Column.FieldName == "LayerName") { e.CellData = layer.Title; } }
public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { var obj = info.Node as CustomNode; if (obj == null) { return; } switch (info.Column.FieldName) { case "Name": info.CellData = obj.Name; break; } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { ConfigMsg obj = info.Node as ConfigMsg; switch (info.Column.FieldName) { case "ConfigDesc": info.CellData = obj.ConfigDesc; break; case "ConfigValue": info.CellData = obj.ConfigValue; break; } }
public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { if (info.Column.Name == "treeListColumnName") { info.CellData = Name; } else if (info.Column.Name == "treeListColumnType") { info.CellData = Type; } else if (info.Column.Name == "treeListColumnValue") { info.CellData = Value; } }
void treeList_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo args) { CodeExampleGroup group = args.Node as CodeExampleGroup; if (group != null) { args.CellData = group.Name; } CodeExample example = args.Node as CodeExample; if (example != null) { args.CellData = example.RegionName; } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { if (Manager == null) { return; } TreeConfigNode config = null; if (Manager.ConfigList.TryGetValue(ObjectName, out config) == false) { return; } String strField = String.Empty; if (config.InnerData.ColumnFieldNames.TryGetValue(info.Column.Caption, out strField) == false) { return; } if (String.IsNullOrWhiteSpace(strField)) { return; } String strFirstField = strField.Split(':')[0]; if (DataStructureProvider.IsForeignKey(InnerData.AATableName, strFirstField)) { Guid iID = ABCHelper.DataConverter.ConvertToGuid(ABCBusinessEntities.ABCDynamicInvoker.GetValue(InnerData, strFirstField)); if (iID != Guid.Empty) { info.CellData = DataCachingProvider.GetCachingObjectAccrossTable(InnerData.AATableName, iID, strField); } } else { info.CellData = ABCBusinessEntities.ABCDynamicInvoker.GetValue(InnerData, strFirstField); String strEnum = DataConfigProvider.TableConfigList[InnerData.AATableName].FieldConfigList[strFirstField].AssignedEnum; if (info.CellData != null && String.IsNullOrWhiteSpace(info.CellData.ToString()) == false && EnumProvider.EnumList.ContainsKey(strEnum)) { info.CellData = EnumProvider.EnumList[strEnum].Items[info.CellData.ToString()].CaptionVN; } } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { if (InnerData != null) { if (info.Column.Tag != null && info.Column.Tag is ABCTreeListColumn.ColumnConfig) { String strTemp = String.Empty; if (InnerData.ColumnFieldNames.TryGetValue(info.Column.Caption, out strTemp)) { info.CellData = strTemp; return; } } else { if (info.Column.FieldName == "Name") { info.CellData = InnerData.Name; return; } if (info.Column.FieldName == "TableName") { info.CellData = InnerData.TableName; return; } if (info.Column.FieldName == "ParentField") { info.CellData = InnerData.ParentField; return; } if (info.Column.FieldName == "ChildField") { info.CellData = InnerData.ChildField; return; } if (info.Column.FieldName == "DefaultLoad") { info.CellData = InnerData.DefaultLoad; return; } } } }
public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { ViewMemberInfo vwInfo = info.Node as ViewMemberInfo; switch (info.Column.FieldName) { case "ViewTypeName": info.CellData = vwInfo.ViewTypeName; break; case "Caption": info.CellData = vwInfo.Caption; break; case "IsUsed": info.CellData = vwInfo.IsUsed; break; } }
public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { var obj = info.Node as GoodsNodeBalanceObj; switch (info.Column.FieldName) { case "Name": if (obj != null) { info.CellData = obj; } break; case "Barcode": if (obj != null) { info.CellData = obj.Barcode; } break; case "Measure": if (obj != null) { info.CellData = obj.Measure; } break; case "QuantityInPack": if (obj != null) { info.CellData = obj.QuantityInPack; } break; case "Check": if (obj != null) { info.CellData = obj.Check; } break; } }
void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { var a = info.Node as A; switch (info.Column.FieldName) { case "Property0": info.CellData = a.Property0; break; case "Property1": info.CellData = a.Property1; break; case "Property2": info.CellData = a.Property2; break; } }
void VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e) { string caption; if (_customCaptions.TryGetValue((string)e.Node, out caption)) { e.CellData = caption; return; } DirectoryInfo di = new DirectoryInfo((string)e.Node); if (e.Column.Name == "Name") { e.CellData = di.Name; } else { e.CellData = null; } }
public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info) { var obj = info.Node as GoodsNodeCategoryObj; switch (info.Column.FieldName) { case "Name": if (obj != null) { info.CellData = obj; } break; case "Check": if (obj != null) { info.CellData = obj.Check; } break; } }