But why you cast returned by sp.GetService result to IDropDownListservice?
Dim idls As NineRays.Windows.Forms.Grids.IDropDownListService = sp.GetService(me.dgParams.GetType().Assembly.GetType("NineRays.Windows.Forms.Grids.IDropDownListService"))
works fine and doesn't generate build errors.
but I've tried to use following code, and this code also works fine:
Dim idls As NineRays.Windows.Forms.Grids.IDropDownListService = CType(sp.GetService(Me.dgParams.GetType().Assembly.GetType("NineRays.Windows.Forms.Grids.IDropDownListService")), NineRays.Windows.Forms.Grids.IDropDownListService)
Test this part of code :
Me.dgParams.GetType().Assembly.GetType("NineRays.Windows.Forms.Grids.IDropDownListService")
if this part returns null it means that your app can't resolve assembly and find NineRays.Windows.Forms.Grids.IDropDownListService type.
This code extract assembly from Me.dgParams type (in this case it NineRays.FlyGrid.dll), if Me.dgParams has another type (inheritor from FlyGrid.Net) you can extract assembly from another instance (following code extract assembly from node):
node.GetType().Assembly.GetType("NineRays.Windows.Forms.Grids.IDropDownListService")