Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
830
set Width Field
posted

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

Parents
No Data
Reply
  • 27093
    posted

    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

     

Children
No Data