Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

c# Code syntax Expand / Collapse
Author
Message
Posted Wednesday, August 29, 2012 4:19 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, January 10, 2013 12:24 AM
Points: 21, Visits: 50
Hi everyone,
I am right now using microsoft visual studio light switch to develop an application with c#. I have created a table which has three columns. Now my requirement is to make only one column in that table as readonly. So i have gone through the write code on the top of the light switch window when we click on to that particular column. And it has given generated the below code.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace LightSwitchApplication
{
public partial class classname
{
partial void column2_IsReadOnly(ref bool result)
{

}
}
}



Can anyone please tell me what i need to fill in the

partial void column2_IsReadOnly(ref bool result)
{

}
to make the column readonly.

Thanks,
Post #1351953
Posted Thursday, November 15, 2012 11:59 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, October 6, 2014 11:25 AM
Points: 1, Visits: 15
partial void column2_IsReadOnly(ref bool result)
{
result = true;
}
Post #1385489
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse