private void photosDataGridView_RowHeaderCellChanged(object sender, EventArgs e) { if (sender is DataGridView) { DataGridView PhotosDataGridView = sender as DataGridView; ShowsAlbumsPhotos.LoadAsync(PhotosDataGridView.CurrentRow.Cells[5].Value.ToString()); } }
private void dataGridColumnsAarranger() { ShowsAlbumsPhotos.LoadAsync(m_FacebookUserInfo.FacebookAlbum.Album.Photos[0].PictureNormalURL); for (int i = 0; i < PhotosDataGridView.ColumnCount; i++) { PhotosDataGridView.Columns[i].ReadOnly = true; PhotosDataGridView.Columns[i].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells; } ((DataGridViewImageColumn)PhotosDataGridView.Columns[1]).ImageLayout = DataGridViewImageCellLayout.Stretch; PhotosDataGridView.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.NotSet; PhotosDataGridView.Columns[0].ReadOnly = false; PhotosDataGridView.Columns[5].Visible = false; PhotosDataGridView.RowTemplate.Height = 70; PhotosDataGridView.Columns[1].Width = 70; PhotosDataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; PhotosDataGridView.AllowUserToResizeColumns = PhotosDataGridView.AllowUserToResizeRows = false; }