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
210
Reliable way to find out position on all columns in code
posted

I have a grid with columns arranged with Row and columns specified. On Grid Side when i mode a column around, what it is the best way to find out all the positions(row, column) of all the fields in the grid?

I have tried to loop through all the fields in the FieldPositionChanged event and I am not getting reliable results. Let us say my starting layout is like this.

Field, Column, Row

Field 1 - 1, 1

Field 2 - 1, 2

Field 3 - 2, 1

Field 4 - 2, 2

And then I move the "Field 3" in the grid by using the drag and drop, to between "Field 1" and "Field 2". Now, the new layout should be 

Field 1 - 1,1 

Field 3 - 1,2 

Field 2 - 1,3

Field 4 - 2,2

How to get this information after field moving?

  • 138253
    Offline posted

    Hello Jasvinder,

     

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

  • 138253
    Offline posted

    Hello Jasvinder,

     

    Thank you for your post. I have been looking into it and I can suggest you use the Field’s ActualPosition Property, which has information about the Column and Row number and span. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.