or
Private Sub GridViewPrepack_CellFormatting(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles GridViewPrepack.CellFormatting | ||
|
||
If Not (e.CellElement.Children.Count > 0) Then | ||
Dim myButton As New RadButtonElement | ||
'Display style of the Image | ||
if CType(e.CellElement.ColumnInfo,GridViewDataColumn).FieldName = "Delete" | ||
AddHandler myButton.Click, AddressOf DeleteButton_Click | ||
'add the button to the cell | ||
e.CellElement.Children.Add(myButton) | ||
End If | ||
End If | ||
End Sub |
Private Sub DeleteButton_Click(ByVal sender As Object, ByVal e As EventArgs) |
GridViewPrepack.Rows.Remove(GridViewPrepack.CurrentRow) |
End Sub |
RadDropDownListEditor editor =
new
RadDropDownListEditor();
RadDropDownListEditorElement element = editor.EditorElement
as
RadDropDownListEditorElement;
element.Popup.MinimumSize =
new
System.Drawing.Size(element.Popup.MinimumSize.Width,
element.ItemHeight * 10);
editor.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
e.Editor = editor;
en
System.ComponentModel.TypeDescriptor.TypeDescriptionNode.GetRuntimeType(Type
objectType) en System.ComponentModel.TypeDescriptionProvider.GetRuntimeType(Type reflectionType) en Microsoft.VisualStudio.Design.MultiTargetingContextProvider.GetRuntimeType(Type objectType) en Microsoft.VisualStudio.Design.Serialization.CodeDom.HandlesClauseManager.GetFieldType(String fieldName, Type documentBaseType) en Microsoft.VisualStudio.Design.Serialization.CodeDom.HandlesClauseManager.GetReferencedComponentType(String componentName, CodeTypeDeclaration codeTypeDecl, ITypeResolutionService loader, IDictionary& cache) en Microsoft.VisualStudio.Design.Serialization.CodeDom.HandlesClauseManager.ParseHandlesClauses(CodeTypeDeclaration codeTypeDecl, Boolean updateCache) en Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e) en System.CodeDom.CodeMemberMethod.get_Statements() en System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) en System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) en Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) en Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) |
Private
Sub
rgvSKUDetails_CommandCellClick(sender
As
System.
Object
, e
As
System.EventArgs)
Handles
rgvSKUDetails.CommandCellClick
If
TypeOf
rgvSKUDetails.CurrentRow
Is
Telerik.WinControls.UI.GridViewNewRowInfo
Then
Exit
Sub
End
If
rgvSKUDetails.Rows.RemoveAt(rgvSKUDetails.CurrentRow.Index)
End
Sub
Public
Sub
rgvSKUDetails_UserDeletingRow(sender
As
System.
Object
, e
As
Telerik.WinControls.UI.GridViewRowCancelEventArgs)
Handles
rgvSKUDetails.UserDeletingRow
Msgbox(
"Why Did you delete it?"
)
'This section here, im supposed to update the database that the
record has been deleted, but since this event is not firing is
there anyway that i could capture the event so i could update the database
that the user deleted the record?
'Perform Update to database
End
Sub