Hi,
When in RowLayout View, can we resize each colmn with different size? it means each column can be sized with different "X" location.
If you see the attached image, it will be clear what we try to do.
Thanks
Hello joonhpark,
Could you please review the sample attached to this post and see if it meets your requirements. Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,
Thanks for sample but it's not really what we wanted as whole columns in same "spanX" still can't have different size. I hope this can be new feature in future, so that you can resize each column regardless same "spanX" location , this will give more flexiblity when it's in CardView with RowLayout.
But you inspired me to utilize the different "spanX" so that each group of fields can be configured with have different size at least.
You might be able to change the size of the cells using a CreationFilter. You would have to set up the grid using the maximum size of any cell and then you could make the UIElements for the cells you want shorter.
Can the user edit the data?
Hi Mike,
Yes, we support user to edit data ( above example was just portion of read-only cells)
If you have simple sample using CreationFilter for this , that will be great.
Hello,
Here is a very simple sample, please try it out:
namespace WindowsFormsApplication409 { public partial class Form1 : Form { public Form1() { InitializeComponent(); ultraGrid1.CreationFilter = new CF(); } } class CF : IUIElementCreationFilter { public void AfterCreateChildElements(UIElement parent) { if (parent is CellUIElement) { if (((CellUIElement)parent).Cell.Column.Index == 0) parent.Rect = new Rectangle(parent.Rect.X, parent.Rect.Y, 20, parent.Rect.Height); } } public bool BeforeCreateChildElements(UIElement parent) { return false; } } }
Also, please take a look at the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Win_Creation_Filter.html.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.