DevExpress GridColumn strange proportional sizing

DevExpress GridColumn strange proportional sizing

Content Index :

DevExpress GridColumn strange proportional sizing
Tag : development , By : user107021
Date : November 26 2020, 03:01 PM

Any of those help I suggest to set AutoWidth property of TableView to False, it should then work as expected. Also, I believe you don't need to set FixedWidth on columns (it only works in AutoWidth mode).
Hope this helps!

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

how to set a default value in DevExpress GridColumn

Tag : winforms , By : warttack
Date : March 29 2020, 07:55 AM
I wish this helpful for you From my experience you can't set the default value of the repository item. The only way to do that is to set the value of your datasource properties to the value you want in the comboBox. Or if its an unbound column to use the CustomUnboundColumnData event to set the value. So that you are basically setting the cell value which happens to match what you want in the repositoryItemComboBox.
For example:
List<whatever> list = new List<whatever>();

foreach (whatever item in list) {
    item.property = repository.Items(0);

Proportional sizing in wpf

Tag : wpf , By : Sebastian Gift
Date : March 29 2020, 07:55 AM
hop of those help? Here is another, alternative answer that you can modify into your needs.
In this example, you can enter the width of your grid in the textbox in the first column. Or you can expand or decrease the width with the button. Just for illustration. You may have to change this for your purpose.
public partial class MainWindow : Window, INotifyPropertyChanged
    public static readonly DependencyProperty GridWidthProperty = DependencyProperty.Register("GridWidth", typeof(Double), typeof(MainWindow), new UIPropertyMetadata(300d, OnGridWidthPropertyChanged));
    public Double GridWidth
        get { return (Double)GetValue(GridWidthProperty); }
            SetValue(GridWidthProperty, value);

    public static readonly DependencyProperty ColumnWidthProperty = DependencyProperty.Register("ColumnWidth", typeof(String), typeof(MainWindow), new UIPropertyMetadata("100", OnColumnWidthPropertyChanged));
    public String ColumnWidth
        get { return (String)GetValue(ColumnWidthProperty); }
            SetValue(ColumnWidthProperty, value);

    private static void OnGridWidthPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        MainWindow ctl = sender as MainWindow;

        ctl = null;

    private static void OnColumnWidthPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        MainWindow ctl = sender as MainWindow;

        ctl = null;

    public MainWindow()
        this.DataContext = this;

    private void button_Click(object sender, RoutedEventArgs e)
        if (sender == button1)
            this.GridWidth += 50;
        else if (sender == button2)
            this.GridWidth -= 50;

    private void doGridWidthChanged()
        if (Double.IsNaN(this.GridWidth))

        this.ColumnWidth = Math.Round((this.GridWidth / 3), 2).ToString();

    private void doColumnWidthChanged()
        Double columnwidthval = Double.NaN;

        if (!String.IsNullOrEmpty(this.ColumnWidth) && Double.TryParse(this.ColumnWidth, out columnwidthval))
            this.GridWidth = columnwidthval * 3;
            this.ColumnWidth = Math.Round((this.GridWidth / 3), 2).ToString();

    public event PropertyChangedEventHandler PropertyChanged;
    public void NotifyPropertyChanged(String PropertyName)
        if (PropertyChanged != null)
            PropertyChanged(this, new PropertyChangedEventArgs(PropertyName));
<Window x:Class="WpfApplication3.MainWindow"
        Title="MainWindow" Height="600" Width="800">
        <Grid Margin="0,60,0,0"
              Width="{Binding Path=GridWidth}">
                <ColumnDefinition Width="1*" />
                <ColumnDefinition Width="2*" />
            <Border Grid.Column="0" Background="GhostWhite" />
            <Border Grid.Column="1" Background="AliceBlue" />
            <Border Grid.ColumnSpan="2" BorderBrush="DimGray" BorderThickness="1" />
            <StackPanel Grid.Column="0" Orientation="Vertical" Margin="3">
                <TextBlock Text="Single" />
                <TextBox Text="{Binding Path=ColumnWidth, Mode=TwoWay}" />
            <StackPanel Grid.Column="1" Orientation="Vertical" Margin="3">
                <TextBlock Text="Double" />
        <Button Content="Increase" Height="34" HorizontalAlignment="Left" Margin="19,12,0,0" Name="button1" VerticalAlignment="Top" Width="90" Click="button_Click" />
        <Button Content="Decrease" Height="34" HorizontalAlignment="Left" Margin="120,12,0,0" Name="button2" VerticalAlignment="Top" Width="90" Click="button_Click" />

Devexpress( WPF GridControl) modify image inside a GridColumn using DataTrigger

Tag : wpf , By : Jim Davis
Date : March 29 2020, 07:55 AM
around this issue I managed to find the solution. The problem was the datatrigger binding instead of Data.SaveStatus should be RowData.Row.SaveStatus:
                <DataTrigger Binding="{Binding Path=RowData.Row.SaveStatus, UpdateSourceTrigger=PropertyChanged}" Value="{x:Static enums:SaveState.DoneSuccesfuly}">
                    <Setter Property="Source" Value="..\Icons\StatusOk.png"></Setter>
                <DataTrigger Binding="{Binding Path=RowData.Row.SaveStatus, UpdateSourceTrigger=PropertyChanged}"  Value="{x:Static enums:SaveState.DoneUnsuccesfuly}">
                    <Setter Property="Source" Value="..\Icons\StatusError.png"></Setter>

DataGridView - Proportional Sizing

Tag : chash , By : user169463
Date : March 29 2020, 07:55 AM
This might help you Follow below steps, it will work fine.
Place tablelayoutpanel control in tabcontrol. Set rows and columns for tablelayoutpanel using the "Edit Rows/Columns" If you have 2 datagridviews only in this tabcontrol, then set row count 1,column count 1. Set column1 with Percentage 100 ,row1 with 50%, row2 with 50% Set tablelayoutpanel dock property to fill. drag and drop datagridview1 to tablelayoutpanel row1 and set the dock property to fill. drag and drop datagridview2 to tablelayoutpanel row2 and set the dock property to fill.

DevExpress Xpf how to add a LookUpEdit to a gridColumn in code

Tag : chash , By : MJRider
Date : March 29 2020, 07:55 AM
Related Posts Related QUESTIONS :
  • Is (0*1*)* equal to (0 | 1)*?
  • How do I configure phpMyAdmin to start with a blank sql query from the SQL tab?
  • "Objects are not valid as a React child" Redux error when conditionally connecting a component?
  • Displacy results are not showing
  • Strapi / Graphql. What am i doing wrong?
  • How to add Search bar for django template?
  • lookup in presto using single column against a range in lookup table
  • How can you stop videos being stolen on website?
  • Can't code substitution happen in Hybrid Flow?
  • Removed widget remains on parent
  • setup saga middleware with redux-starter-kit's configureStore()
  • How to get cookies from response of scrapy splash
  • I need to do a firebase stream and not a Http Get
  • Unable to compile node-runtime
  • SQLSTATE[42S22]: Column not found: 1054 Unknown column '' in 'where clause'
  • How to extract only the number from a variable
  • disable linter in DAML studio
  • RxJS: How to set exhaustMap concurrent?
  • How to remove perforce (p4) on Ubuntu
  • How do they know mean and std, the input value of transforms.Normalize
  • Why this type is not an Interface?
  • SugarCRM Rest API set_relationship between Contacts and Documents
  • Jira dashboard organization
  • Web worker importScripts fails to place script variables in global scope
  • Always errors - The "path" argument must be one of type string, Buffer, or URL. Received type undefined
  • How to create an observable of a stream of infinite items
  • Not efficiently to use multi-Core CPU for training Doc2vec with gensim
  • webGL gl_Position value saving outside shaders
  • Is it okay for a resolver to have side effects besides resolving the type?
  • Move 32bit register into a 8 bit register
  • Is there a way to update, not overwrite, worker_env for a Dask YarnCluster within a script?
  • Lotus Notes Deployment
  • How Do I Add Active Directory To APIM Using Terraform?
  • How to get the old parameter values in Blazor OnParameterSet?
  • How to debug "ERROR: Could not reach the worker node."?
  • How chain indefinite amount of flatMap operators in Reactor?
  • extract dates and times from string in Redshift
  • How do I make a column of 3 cards match in height in bootstrapVue?
  • how to replace missing values from another column in PySpark?
  • only read last line of text file (C++ Builder)
  • Snakemake --forceall --dag results in mysterius Error: <stdin>: syntax error in line 1 near 'File' from Graphvis
  • How Can I Remove Demo Products From APIM Created With Terraform?
  • How to avoid cloning a big integer in rust
  • Break a row of words into word groups in Hive
  • How can I add a path variable to existing files in an Installshield project converted from MSI
  • Certain languages are not available in postman; is there a way to enable it?
  • Concatenation step of U-Net for unequal number of channels
  • HL Fabric - states, transactions but varied keys
  • How to handle "flood wait" errors when using telethon.sync?
  • Any way to make closure which takes a destructured array?
  • What is the Difference between @PeculiarVentures 's `webcrypto` and `node-webcrypto-ossl`?
  • DWG Sheet Combination failing on AutoDesk Forge
  • karate.log(args) on afterScenario hook is not embedded on surefire json file
  • How do I output latest distinct values of specific fields and all other colums?
  • Clarification on lit-element components and where to browse them
  • Will websockets over HTTP2 also be multiplexed in streams?
  • How to apply switch statement for multi columns in datatables
  • frobot framework - Usage outside testing
  • How do I build against the UCRT with mingw-w64?
  • How to use someClass.android.ts and someClass.ios.ts without errors
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com