Replying my own post, DataTable does have a property called DefaultView of type DataView, you might be able to use it - it might not work though - I haven't tried it.
On Apr 5, 2005 7:06 PM, Lt Col Gecko Pointdexter <[EMAIL PROTECTED]> wrote: > Try binding to a DataView instead of DataTable - it should be fairly > easy to modify the app, and set the DataView's properties: AllowDelete > and AllowInsert to false, keep the AllowUpdate to false. > > HTH, > Gecko. > > On Apr 5, 2005 6:29 PM, 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(r) http://www.develop.com > > > > View archives and manage your subscription(s) at http://discuss.develop.com > > > > -- > You're going to reap just what you sow. > Lt. Col. Gecko Pointdexter - expert specialist > -- You're going to reap just what you sow. Lt. Col. Gecko Pointdexter - expert specialist =================================== This list is hosted by DevelopMentorŪ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com