Hi,
I have a xamwebgrid with columns that spans less (width) then the grid in total. Then the grid "adds" a column that spans the rest of the space automatically. An example of this can be seen in the sample application of the grid - the "Column Resizing" example. (The column to the right of "Units:").
Question :
The columns we add to the grid in our application are styled and customized in several ways. For example we have customized the "MouseOver" visualstate. ( We dont want the colored line that followes the grid while you move the mouse around ). This behaviour can however bee seen on the "added" column in the end that fills the remaining space in the grids area.
How do i access this column so that i can customize the cellstyles in it ?
Sincerely,
Øyvind
Hi Pragati,
Try the following:
Style s = new Style(typeof(FooterCellControl));
s.Setters.Add(new Setter(FooterCellControl.HorizontalContentAlignmentProperty, HorizontalAlignment.Right));
this.DataGrid1.Columns.DataColumns["Tooltip"].FooterStyle = s;
-SteveZ
Hi, I'm using the
XamWebGrid
& want the footer text to be aligned at right.
I tried with -
Style st1 = new Style();
st1.Setters.Add(s1);
igCountryCoverage.Columns.DataColumns[1].FooterStyle = st1 ;
But, its not working.
Can anyone help?
Thanks in advance.
Pragati
Just for the record, this Settings object was added in the Service Release.
The column in question is called the FillerColumn and can be modified with the this.dataGrid.FillerColumnSettings object.
this.dataGrid.FillerColumnSettings.Style
this.dataGrid.FillerColumnSettings.HeaderStyle
this.dataGrid.FillerColumnSettings.FooterStyle
You should be able to modify it the same way you would a normal style.