Setting ColumnInfo Property from .resx File

Posted by: zawahan24 on 15 October 2023, 6:38 am EST

    • Post Options:
    • Link

    Posted 15 October 2023, 6:38 am EST

    Hi.I’m learning about C1flexGrid.

    I want advices about ColumnInfo property.

    //Form.cs
    MainForm.ColumnInfo = resources.GetString("MainForm.ColumnInfo");
    //Form.resx
    <data name="MainForm.ColumnInfo" xml:space="preserve">
      <value>4,1,0,0,0,-1,Columns:0{Style:"Font:Microsoft Sans Serif, 7.8pt;";}	1{Width:25;Name:"Id";Caption:"Id";AllowEditing:False;}	2{Width:51;Name:"Name";Caption:"Name";AllowEditing:False;}	3{Name:"Department";Caption:"Department";}	</value>
    </data>

    I tried my best to understand them though,I didn’t understand what the code in Form.resx means,especially the part of “4,1,0,0,0,-1”. Can you give me some explanations about it?

  • Posted 15 October 2023, 9:47 am EST

    This is what the XML doc for this property says :wink:

    The first integer value describes columns’ C1.Win.FlexGrid.RowColCollection.Count property.

    The second integer value describes columns’ C1.Win.FlexGrid.RowColCollection.Fixed property.

    The third integer value describes columns’ C1.Win.FlexGrid.RowColCollection.Frozen property.

    The fourth integer value describes columns’ C1.Win.FlexGrid.RowColCollection.MinSize property.

    The fifth integer value describes columns’ C1.Win.FlexGrid.RowColCollection.MaxSize property.

    The sixth integer value describes columns’ C1.Win.FlexGrid.RowColCollection.DefaultSize property.

    The seventh string expression describes various properties of individual columns.

    Best regards

    Wolfgang

  • Posted 15 October 2023, 8:21 pm EST

    Thank you so much !

    Your advice helps me a lot!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels