Hi ...
I just wanted to know how to resize column width while using UltraGridBagLayout with UltraGridRowEditTemplate. I have added tow lables in template but second lables is not getting fixed in column n getting wrapped out in next line.
Hello KPCN,
What you could do is to set the 'ExpandToFitHeight' property of the 'UltraGridBagLayoutPanel' control to 'True' and see if it suits your needs. Please let me know of the result, I will be waiting for your feedback!
Hi Boris,
I 've already set those properties. still its showing the same result.
Hi,
This works fine here, could you please try to attach if possible a small sample project reproducing the above mentioned issue, I will be happy to take a look at it.
Here with I am attaching RnD Project. Please find the appropriate portion.
Thnkx.
Hello,
I tried to run the sample unsuccesfully, I am getting 11 errors here:
Error 11 The name 'cancel_Click' does not exist in the current context
Error 9 The name 'save_Click' does not exist in the current context
Error 1 The name 'Shared' does not exist in the current context
Error 2 The name 'toolstripstatuslabelstatusmain' does not exist in the current context
Error 3 The name 'ultraGridRowEditTemplateMain' does not exist in the current context
Please let me know if I am doing something wrong here.
Hi.
This is not working version of project. I just represented you with part which specially dealing with ultragrid's properties.
Have a look at
private void openToolStripMenuItem_Click(object sender, EventArgs e) { // Drive Info holds two fields 1. DriveId 2.DriveName UltraGridMain.DataSource = Shared.DbManager.LoadTable("DriveInfo"); toolstripstatuslabelstatusmain.text = "Drive Master loaded"; UltraGridBagLayoutManager gridBagLayout = new UltraGridBagLayoutManager(); gridBagLayout.ExpandToFitHeight = true; gridBagLayout.ExpandToFitWidth = true; ultraGridRowEditTemplateMain.BorderStyle = BorderStyle.Fixed3D; ultraGridRowEditTemplateMain.AddLabel(gridBagLayout, "Drive Id :", 0, 0, 1, 1); ultraGridRowEditTemplateMain.AddLabel(gridBagLayout, "Drive Name :", 0, 1, 1, 1); ultraGridRowEditTemplateMain.AddUltraGridCellProxy(gridBagLayout, "DriveId", 1, 0, 1, 1); ultraGridRowEditTemplateMain.AddUltraGridCellProxy(gridBagLayout, "DriveName", 1, 1, 1, 1); ultraGridRowEditTemplateMain.AddUltraButton(gridBagLayout, "Ok", 0, 2, 1, 1).Click += new EventHandler(save_Click); ultraGridRowEditTemplateMain.AddUltraButton(gridBagLayout, "Cancel", 1, 2, 1, 1).Click += new EventHandler(cancel_Click); }where specially i m assigning its properties, as u stated.yet not getting expected output.
I am able to get the desired behavior by using only the 'ExpandToFitHeight' property and not 'ExpandToFitWidth', did you try this? If it does not yet work for you, I might have to take a look at a working sample which reproduces the issue.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
You would have to place your own dropdown like UltraCombo or something else and make the connection manually. There is not such functionality which is by default, built-in.
Is there any way I can bind my UltraGridRowEditTemplate 's field with db?
i.e. for some fields I wanted to represent drop down list containing values belonging to database.
How may I achieve functionality like this ? Lemme know ASAP.
Thanks in adv.