whatever settings you have for the datagrid, just don't add a "delete" template column. second, adding insert functionality is not intuitive anyway. so you cannot just check a property to add an insert column. so that part is ok. so basically what i am saying is, just add a template column for "Edit,Update,Cancel" column, handle the appropriate events, and u are all set. you dont have to touch any piece of your code.
Ali --- "Sathiamurthy, Venkat" <[EMAIL PROTECTED]> wrote: > I want to use datagrid only to display and update > data. I don't want to > insert or delete a row in the datagrid. > How do I solve this? > > Thanks, > > > -----Original Message----- > From: Unmoderated discussion of advanced .NET > topics. > [mailto:[EMAIL PROTECTED] On > Behalf Of Daniel Ripoll > Sent: Tuesday, April 05, 2005 11:13 AM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: [ADVANCED-DOTNET] Multiple httpChannels > > > Is it possible? My application needs to call two > different remoting > servers, on two different ports, with different > formatters but with the > channel template (http). > > So, I need two different httpchannels, with > different formatter and > port. What I want todo is basically this > > <channel ref="http" port="2602" > displayName="simulatorChannel"> > <serverProviders> > <formatter ref="soap" > typeFilterLevel="Full"/> > </serverProviders> > <clientProviders> > <formatter ref="soap"/> > </clientProviders> > </channel> > <channel ref="http" port="2601" > displayName="encoderChannel"> > <clientProviders> > <formatter ref="binary"/> > </clientProviders> > </channel> > > Which of course fails miserably, stating that "Only > one usage of each > socket address (protocol/network address/port) is > normally permitted". > 'Normally permitted' sounds like there should be > some room to manuevor. > So I try to do it manually, like so : > > HttpChannel cnl1 = new HttpChannel (2602); > cnl1.ChannelName = "simulatorChannel"; > > Hashtable Props = new Hashtable(); > > Props.Add("name", "encoderChannel"); //give the > channel a different > name, or it won't work Props.Add("port", 2601); > //assign it a port > > //Use appropriate sinks. > IClientChannelSinkProvider cs = new > BinaryClientFormatterSinkProvider(); > > //Construct the second channel > TcpChannel cnl2 = new TcpChannel(Props, cs, null); > > ChannelServices.RegisterChannel(cnl1); > ChannelServices.RegisterChannel(cnl2); > > No luck their either (same exception). Is it all > possible to have two > different channels like this? Should it even be done > this way? > > /daniel > > =================================== > This list is hosted by DevelopMentor(r) > http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentorŪ > http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentorŪ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com