private void editPropertiesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EUListItem           listItem         = (EUListItem)LibraryContentDataGridView.SelectedRows[0].Tag;
            EUFolder             folder           = SelectedFolder as EUFolder;
            List <EUContentType> contentTypes     = SharePointManager.GetContentTypes(folder.SiteSetting, folder.WebUrl, folder.ListName);
            EUFieldCollection    fields           = SharePointManager.GetFields(folder.SiteSetting, folder.WebUrl, folder.ListName);
            ListItemEditForm     listItemEditForm = new ListItemEditForm();

            listItemEditForm.InitializeForm(folder, listItem);
            listItemEditForm.ShowDialog();
            if (listItemEditForm.DialogResult != DialogResult.OK)
            {
                return;
            }


            Hashtable changedProperties = new Hashtable();

            if (listItemEditForm.FieldInformations.ContentType != null)
            {
                changedProperties.Add("ContentType", listItemEditForm.FieldInformations.ContentType.Name);
            }
            for (int i = 0; i < listItemEditForm.FieldInformations.Count(); i++)
            {
                changedProperties.Add(listItemEditForm.FieldInformations[i].InternalName, listItemEditForm.FieldInformations[i].Value);
            }
            SharePointManager.UpdateListItem(listItem.SiteSetting, listItem.WebURL, listItem.ListName, listItem.ID, changedProperties);
            RefreshViewExt();
        }
        private void ListItemPropertyGridGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            Hashtable changedProperties = new Hashtable();

            changedProperties.Add(e.ChangedItem.Label, e.ChangedItem.Value.ToString());
            EUListItem listItem = (EUListItem)ListItemPropertyGridGrid.Tag;

            SharePointManager.UpdateListItem(listItem.SiteSetting, listItem.WebURL, listItem.ListName, listItem.ID, changedProperties);
        }