I have only one column in my UltraGrid. I need to set the width of the column to the width of the grid and when i strecth the window containing the grid horizontally, the grid along with the column shouls also strecth accordingly.
Please let me know how to achieve this.
Hello,
I believe that the sample from the following thread will give you the idea how to do this: http://forums.infragistics.com/forums/t/63689.aspx.
When you run this project you will see the right-top sample which is called 'Same EditingControl and RenderingControl'.
Please do not hesitate to contact me if you need any additional assistance.
Can we set the same instance of user control as RenderingControl and EditingControl or do we need to have separate instances of the usercontrol
It will be easier for me if you could attach a small sample project reproducing this. However I have one thought on this - the issue might be because you have set the your control as a 'RenderingControl' in the 'UltraControlContainerEditor'. If you want to not only see this control but to be able to click on it and use it you have to set it as an 'EditingControl'.
Please let me know if this works for you.
Hi Boris, i have another question on the same. Below is the screenshot of my control. I am not able to perform operation on my user contol inside the cell of the grid. I am able to select the cell but not able click on the arrow button. please let me know how to do this.
Hello again,
In your case I believe that you could use the following code:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].ColHeadersVisible = false; }
Please do not hesitate to contact us if you need any additional assistance.