Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
how to enable xamgrid column to allow empty while editing a cell
posted

 

below is the code. could you please help me how to enable to enter '' empty value while editing the cell.

 

its quite urgent please help me out


 

<

ig:XamGrid x:Name="XamMetaGrid"

          

HorizontalAlignment="Left"     

       

Margin="5,52,0,42" PreviewTextInput="XamMetaGrid_PreviewTextInput" CellExitedEditMode="XamMetaGrid_CellExitedEditMode_1"

       

ItemsSource="{Binding FillGrid, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEnabled="True" Width="601"

                  

>          

           

<ig:XamGrid.Columns>

               

<ig:UnboundColumn Key="EditColumn" HeaderText=" " Visibility ="{Binding ColumnVisibilityCustom.ColumnVisibility, Source={StaticResource proxy}}">

                   

<ig:UnboundColumn.ItemTemplate>

                       

<DataTemplate>

                           

<StackPanel Orientation="Horizontal" >

                               

<Button Content="Edit" Width="40" Click="EditButton_Click">

<ig:Commanding.Command>

                                       

<ig:XamGridRowCommandSource EventName="Click" AllowEventHandling="True" CommandType="Edit" >

                                       

</ig:XamGridRowCommandSource>

                                   

</ig:Commanding.Command>

                               

</Button>

                           

</StackPanel>                           

                       

</DataTemplate>

                   

</ig:UnboundColumn.ItemTemplate>

               

</ig:UnboundColumn>

           

</ig:XamGrid.Columns>

           

           

<ig:XamGrid.SelectionSettings>

               

<ig:SelectionSettings ColumnSelection="Single" RowSelection="Single" CellClickAction="SelectRow" >

               

</ig:SelectionSettings>

           

</ig:XamGrid.SelectionSettings>

           

<ig:XamGrid.EditingSettings>

               

<ig:EditingSettings AllowEditing="None" />

           

</ig:XamGrid.EditingSettings>

           

           

<ig:XamGrid.PagerSettings>

               

<ig:PagerSettings AllowPaging="Bottom"

       

PageSize="100" />

           

</ig:XamGrid.PagerSettings>

           

<ig:XamGrid.ColumnTypeMappings>

               

<ig:ColumnTypeMapping ColumnType="ig:TextColumn" DataType="system:DateTime" />

           

</ig:XamGrid.ColumnTypeMappings>

       

</ig:XamGrid>

  • 35319
    posted

    Hello Subramani,

     

    Thank you for your post. I have been looking into your requirement and if you want to be able to leave empty values in cells when editing you need  to define all your underlying data as strings because data stored as numeric or date type cannot be null or empty.

     

    Let me know, if you need any further assistance on this matter.

  • 35319
    posted

    Hello Subramani,

     

    I am just checking if you require any further assistance on the matter.