Setting dxDataGrid columns "fixed" property

Answered
0
0

Hi.

I need to set a dxDataGrid column as “fixed” on the left and for such I need to set the “columns” Option for such.

https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/#fixed

Here is the code:


			this.dxDataGrid1.Options.columns = new object[]
			{
				new
                {
					datafield = "myField",
					fixed = false,
					caption = "Test"
                }
			};

The problem is with the “fixed” property, apparently it is being confused with the Wisej.Panel.FixedPanel enum and it won’t let me add this line.

Any workaround for this one?

Thanks in advance.

Ivan
(Wisej 2.2.46.0, VS 2019, C#)

  • You must to post comments
Best Answer
0
0

There is no confusion with an enumeration. The JSON is simply a dynamic object.

Attachment
  • You must to post comments
0
0

Oh, well… then I don’t know.
I have attached the images from VS.

  • Luca
    • Luca
    • Jun 1, 2021 - 5:09 pm
    • 1
    fixed is a C# keyword. In C# you can prefix a keyword with @ if you want to use it as a variable name.
  • Ivan Borges
    Got it! Thank you.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.