in XamDataGrid in 'Loaded event seven field like this:
private void xdgBase_Loaded(object sender, RoutedEventArgs e) { XamDataGrid xdg = sender as XamDataGrid; try {
Field
fieldTmp;fieldTmp = xdg.FieldLayouts[0].Fields["StazioneCollegata"];fieldTmp.Label = "Stazione Collegata";fieldTmp.ToolTip = "Stazione Collegata";.....
septum as the width of the cell?
Thanks
Hi,
You can set this by using either the LabelWidth or the CellWidth proeprties of the FieldSettings class. You can access them like so:
Field fieldTmp;
fieldTmp = xdg.FieldLayouts[0].Fields["StazioneCollegata"];
fieldTmp.Label = "Stazione Collegata";
fieldTmp.ToolTip = "Stazione Collegata";
fieldTmp.Settings.LabelWidth = 200;
//or
fieldTmp.Settings.CellWidth = 200;
Let me know if you need any further help with this.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support