System.Reflection.TargetInvocationException was unhandled
Message="Exception has been thrown by the target of an invocation."
Source="mscorlib"
StackTrace:
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)….
| RadGridSubstances.Columns.Remove(RadGridSubstances.Columns("uzs_PosNeg")) |
| Dim comboBoxColumn As New GridViewComboBoxColumn |
| comboBoxColumn.HeaderText = "positiv/negativ" |
| comboBoxColumn.FieldName = "uzs_PosNeg" |
| comboBoxColumn.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList |
| ' Create Custom Table for Combobox |
| Dim comboDT As New DataTable |
| comboDT.Columns.Add("Name", GetType(System.String)) |
| comboDT.Columns.Add("Wert", GetType(System.Int16)) |
| Dim myNewRow As DataRow = comboDT.NewRow() |
| myNewRow("Name") = "positiv" |
| myNewRow("Wert") = 1 |
| comboDT.Rows.Add(myNewRow) |
| Dim myNewRow2 As DataRow = comboDT.NewRow() |
| myNewRow2("Name") = "negativ" |
| myNewRow2("Wert") = 0 |
| comboDT.Rows.Add(myNewRow2) |
| comboBoxColumn.DataSource = comboDT |
| comboBoxColumn.ValueMember = "Wert" |
| comboBoxColumn.DisplayMember = "Name" |
| comboBoxColumn.FieldName = "uzs_PosNeg" |
| RadGridSubstances.Columns.Add(comboBoxColumn) |
hi telerik,
I am working on winforms version Q2 2008 SP1 using a GridView control with one
imageCOlumn and three textboxColumns and a image list in that i have four images. I am using a
BindingList to bind the Grid, when i load the Grid initially it should not show image in the
imageColumn and all other textboxColumns gets filled with data.
Now, how can i fill the imageColumn of the Grid for a particular row based on the context menu that
consists of four images such that my imagecolumn gets filled with one of the images that i select from
the right click context menu.
how can i implement the above functionality, any help.
thanks and regards,
Vasu.