or

Private Sub Bans_Grid_CurrentRowChanged(sender As Object, e As Telerik.WinControls.UI.CurrentRowChangedEventArgs) Handles Bans_Grid.CurrentRowChanged
Bans_Name_txt.Text = e.CurrentRow.Cells.Item(3).Value.ToString 'It breaks on this line.End Sub
private void addEmptyImages() { for (int i = 0; i < imagelistPictures.Images.Count; i++) { if (imagelistPictures.Images[i] != null) { ListViewDataItem item = new ListViewDataItem(); item.Tag = "Delay Render"; item.Text = "Page " + (i + 1).ToString(); item.Image = Properties.Resources.imageLoading; item.ImageAlignment = ContentAlignment.MiddleCenter; item.TextAlignment = ContentAlignment.TopLeft; listviewGotoPage.Items.Add(item); } else { MessageBox.Show("contents of initial list are null, break"); break; } } }


| Private Sub rgvVoucherServices_DefaultValuesNeeded(ByVal sender As Object, _ |
| ByVal e As Telerik.WinControls.UI.GridViewRowEventArgs) _ |
| Handles rgvVoucherServices.DefaultValuesNeeded |
| If TypeOf (rgvVoucherServices.CurrentRow) Is GridViewNewRowInfo Then |
| With e.Row |
| .Cells("ELS_ELVKey").Value = rgvVoucherServices.CurrentRow.ViewInfo.ParentRow.Cells("ELV_Key").Value |
| .Cells("ELS_LastUpdAction").Value = "I" |
| .Cells("ELS_LastUpdBy").Value = GlobalParameters("UserKey") |
| .Cells("ELS_LastUpdWhen").Value = Now |
| End With |
| End If |
| End Sub |
