public void SelectItem(DrawingItem item) { propertyGrid1.SelectedObject = item; VPLUtil.AdjustImagePropertyAttribute(item); if (item != null) { Text = "Drawing item: " + item.Name; } else { Text = "Drawing item:"; } propertyGrid1.Refresh(); }