Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
930
EditorControl in code-behind
posted

I have a webgrid and add my columns in code-behind. I also have a WebCombo on my page (in the markup) which I would like to add as an EditorControl to one of my columns.. So my problem is that I need to add this EditorControl in code-behind when I create my columns.

I assume that I should do something like

newColumn = new UltraGridColumn("myKey", "myHeader", ColumnType.Custom, "");

newColumn.EditorControlID = myWebCombo.ID;

Correct? I tried doing this but the webcombo is not attached to the column, instead the WebCombo is just displayed on the page outside the grid. I am not sure that the ID is correct.. I tried using ClientID aswell, but doesn't work neither. Any thoughts on this?

 

Parents Reply Children
No Data