﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - GridPresenter Read only?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/GridPresenter-Read-only/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>GridPresenter Read only?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/GridPresenter-Read-only/</link><pubDate>Thu, 20 Jan 2011 22:29:39 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>ClientUI</category><description>&lt;p&gt;Unfortunately, disabling edit visually in the GridPresenter has not been supported. In order to achieve such scenario, you will need to override the celltemplate. Here is some snippet for string cell and boolean cell:&lt;/p&gt;&lt;pre&gt;&amp;lt;Intersoft:DataPresenterTextColumn Caption="User Name" DataMemberField="UserName" IsPrimaryKey="True" Width="150" Editable="False" IsReadOnly="True"&amp;gt;&lt;br /&gt;    &amp;lt;Intersoft:DataPresenterTextColumn.CellTemplate&amp;gt;&lt;br /&gt;        &amp;lt;DataTemplate&amp;gt;&lt;br /&gt;            &amp;lt;TextBlock Text="{Binding UserName}" Padding="4" /&amp;gt;&lt;br /&gt;        &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;    &amp;lt;/Intersoft:DataPresenterTextColumn.CellTemplate&amp;gt;&lt;br /&gt;&amp;lt;/Intersoft:DataPresenterTextColumn&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;Intersoft:DataPresenterCheckBoxColumn Caption="Cat Add" DataType="System.Boolean" DataMemberField="Add" Width="60" Editable="False"&amp;gt;&lt;br /&gt;    &amp;lt;Intersoft:DataPresenterCheckBoxColumn.CellTemplate&amp;gt;&lt;br /&gt;        &amp;lt;DataTemplate&amp;gt;&lt;br /&gt;            &amp;lt;CheckBox IsChecked="{Binding Add}" IsEnabled="False" Margin="4" /&amp;gt;&lt;br /&gt;        &amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;    &amp;lt;/Intersoft:DataPresenterCheckBoxColumn.CellTemplate&amp;gt;&lt;br /&gt;&amp;lt;/Intersoft:DataPresenterCheckBoxColumn&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>GridPresenter Read only?</title><link>http://www.intersoftsolutions.com/Community/ClientUI/GridPresenter-Read-only/</link><pubDate>Thu, 20 Jan 2011 15:33:32 GMT</pubDate><dc:creator>Andre</dc:creator><category>ClientUI</category><description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hi, i have 2 issues with this GridPresenter &lt;/p&gt;
&lt;p&gt; I have a GridPresenter and i have edit mode is false.  the check boxes that are here are still able to be checked and unchecked.  Even if i put the check boxes as editable false and read only false you can still edit the check boxes. nothing i do will make this read only.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If i change edit mode on and i put the DataPresenterTextColumn  as read only it's still able to be edited, but the check boxes never update the datasourse.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;why does this happen?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;Intersoft:GridPresenter x:Name="grddetails" Grid.Row="2" DataSourceID="{Binding}" ItemsSource="{Binding Users, Mode=TwoWay}" EnablePaging="Yes" AutoGenerateColumn="No" EnableContextMenu="True" Error="grddetails_Error" MouseRightButtonUp="grddetails_MouseRightButtonUp"&amp;gt;&lt;br /&gt;       &amp;lt;Intersoft:GridPresenter.Columns&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterTextColumn Caption="User Name" DataMemberField="UserName" IsPrimaryKey="True" Width="150" Editable="False" IsReadOnly="True"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterTextColumn Caption="Email Address" DataMemberField="Email" Width="200"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterTextColumn Caption="Name" DataMemberField="Name" Width="200"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterTextColumn Caption="Role" DataMemberField="RoleName" DataType="System.String" Width="65" Editable="False" IsReadOnly="True"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterCheckBoxColumn Caption="Enable" DataMemberField="enable" DataType="System.Boolean" Width="50" Editable="True"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterCheckBoxColumn Caption="Cat Add" DataType="System.Boolean" DataMemberField="Add" Width="60"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterCheckBoxColumn Caption="Cat Delete" DataType="System.Boolean" DataMemberField="Delete" Width="60"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterCheckBoxColumn Caption="Cat Edit" DataType="System.Boolean" DataMemberField="Edit" Width="60"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterCheckBoxColumn Caption="Record Add" DataType="System.Boolean" DataMemberField="rAdd" Width="80"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterCheckBoxColumn Caption="Record Delete" DataType="System.Boolean" DataMemberField="rDelete" Width="80"/&amp;gt;&lt;br /&gt;        &amp;lt;Intersoft:DataPresenterCheckBoxColumn Caption="Record Edit" DataType="System.Boolean" DataMemberField="rEdit" Width="80"/&amp;gt;&lt;br /&gt;       &amp;lt;/Intersoft:GridPresenter.Columns&amp;gt;&lt;br /&gt;      &amp;lt;/Intersoft:GridPresenter&amp;gt;&lt;/p&gt;</description></item></channel></rss>