Hello,
Ultragrid is binded to the datasource. The properties of the ultragrid are
1) columns[0].AutoSizeEdit = true.
2) columns[0].cellMultiLine = true
3) override.RowSizing = AutoFree
4) RowSizingArea = Entire row
But after setting all these properties, the Row is not resizing after entering the contents. Please find the attached application sample. Kindly help me in solve the issue.
Objective is Need to resize the Row automatically as per the multiline contents.
Hello gudi,
I took a look at the .doc file which you have attached to your previous post and I want to ask you to attach your sample project which reproduces your scenario and I will try to make it work for you because I do not see why it should not be working.
The mentioned method didnt work. Any update on the above scenario ? Please check the use case scenario in the previous attachment.
Please find the attachment which explains the scenario with images. Thank you
If I understood you right, I believe you could use the following code in order to achieve what you are after:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.RowSizingAutoMaxLines = 4; }
Please feel free to let me know if I misunderstood you or if you have any other questions.
The requirement is like this:-
Enter the data by pressing enter in the grid's individual cell. ie, multiline contents in the cell.
when the user loses the focus of the grid, as per the multiline contents of the cell, the row must be expanded to show all the contents.
I wanted to restrict the row to show only 4 lines of text only. anything more than that wont have to show them completely.