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
I have solved it. I was using the style wrong. I was not editing the States of the Cell Control.
Ok I I know what the problem is but dont know how to fix it. I created a new CellControl style and did not edit the default in any way. I assigned it to my Grid and the border lines appear fine. Now I want to edit the alternating row colors. I went to the CellControl Style and set the AltMouseOver background color to a light blue and the ActiveSelected background color to white, and the grid lines no longer appear. When I did change these background colors, expression did throw up some warning about some animations being deleted.
Any ideas
sorry about the formatting, how did you get that neat little code windows into your post???
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>
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