Hi
I am sure I am missing something very obvious here. I read your tutorial on how to edit the cell control style and apply it to the grid. I am trying to get the border to show up on all sides of the cell within the grid. I have created a cell control style as per the tutorial, selected the Root element and set the BorderThickness to 2 all around, but it does not effect the cell border.
Please advice
Andrew
Hi Andrew,
With this code snippet you can get the result on the screenshot below
xmlns:ig="http://schemas.infragistics.com/xaml" ... <ig:XamGrid> <ig:XamGrid.CellStyle> <Style TargetType="ig:CellControl"> <Setter Property="BorderThickness" Value="0,0,1,1" /> <Setter Property="BorderBrush" Value="Gold" /> </Style> </ig:XamGrid.CellStyle> </ig:XamGrid> ...
I hope that this will helps
My grid is defined as follows, using a static resource. How do I do what you have done above using the static resource, or am i missing something here?
<igGrid:XamWebGrid x:Name="igwebgrid_results" AutoGenerateColumns="False"
CellStyle="{StaticResource CellControlDefaultStyle}">
<igGrid:XamWebGrid.Columns> <igGrid:TextColumn Key="PersonID" HeaderText="ID" Width="80"/> <igGrid:TextColumn Key="FirstName" HeaderText="First Name" Width="150"/> <igGrid:TextColumn Key="LastName" HeaderText="Last Name" Width="150"/> <igGrid:TextColumn Key="CompanyName" HeaderText="Company" Width="150"/> <igGrid:HyperlinkColumn Key="Email1" HeaderText="Email" Width="200"/> <igGrid:TextColumn Key="MobileTelNumber" HeaderText="Cell Number" Width="100"/> </igGrid:XamWebGrid.Columns>
</igGrid:XamWebGrid>