Hi,
how can i set left margin for cell value content in xamdatagrid??
Regards,
Jafar VM
Hi Jafar,
Cell content in the XamDataGrid is generally displayed via one of the Infragistics editor controls. XamTextEditor is the most common for text fields. You can create a style for this editor and set the margin in the style so that it will be applied to all cells in the grid.
<igDP:XamDataGrid> <igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="Margin" Value="15,1,1,1"/> </Style> </igDP:XamDataGrid.Resources> </igDP:XamDataGrid>
Hi Rob,
this is not working for me .my scenario is as follows
i have custom class derived from infragistics "Field" Class.In xaml iam using this custom class .
and i had set allow edit to false in field settings(so there will not be any option to edit cell value)
eg:-
public class CustomeField : Field
{
}
and my xaml is as follows.
<customField:CustomSortingField Name="FileName" Label="{tp:Localize fileName}" Visibility="Visible" Width="*"> <customField:CustomSortingField.Settings> <igDP:FieldSettings LabelPresenterStyle="{StaticResource LabelPresenterStyle}"> </igDP:FieldSettings> </customField:CustomSortingField.Settings> </customField:CustomSortingField>
Regards ,