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 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.
Hi,
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.
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.
Hello,
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.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.