locked
Error - No defining declaration found for implementing declaration of partial method RRS feed

  • Question

  • Hi,

    I am quite  new to c# and using lightswitch to create a webform. However, I have to write a code as per the webform logic and requirement and now getting error on this part -

    partial voidgridDeleteSelected_Execute(StringID)

    The error is -  No defining declaration found for implementing declaration of partial method

    Could someone please tell how this error can be resolved ? Please find the code attached below.

    Thanks.

    using System;
    using System.Linq;
    using System.IO;
    using System.IO.IsolatedStorage;
    using System.Collections.Generic;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Framework.Client;
    using Microsoft.LightSwitch.Presentation;
    using Microsoft.LightSwitch.Presentation.Extensions;
    namespace LightSwitchApplication
    {
        public partial class EditableServicesGrid
        {
            partial void gridDeleteSelected_CanExecute(ref bool result)
            {
               
    
            }
    
            partial void gridDeleteSelected_Execute(String ID)
            {
                
                if (!string.IsNullOrEmpty(ID))
                {
                    string sqldelete = "Update services set DELETED_FLG = 'Y' WHERE ID IN ( " + ID + ")";
                }
    
            }
    
            
        }
    }
    Thursday, January 29, 2015 12:07 PM

All replies

  • partial voidgridDeleteSelected_Execute(StringID)

    The error is -  No defining declaration found for implementing declaration of partial method

    Could someone please tell how this error can be resolved ? Please find the code attached below.

    Could you explanation what your requirement is? detailed information is necessary.
    Thursday, February 5, 2015 9:06 AM