I am using the WebDataGrid and I need to have a numeric editor for the first cell in a column and a percent editor for all other cells in that column. Is there a way to do that? I am using version 11.2.20112.2086 and VB code behind.
Hello Peggy,
Thank you for posting in the community.
Using two different editor providers in a single column would not be possible, however you may use a templated column containing all the required controls and display only the desired ones per row onInitializeRow. I am attaching a small sample illustrating this scenario.
Please let me know if this helps.
Thank you! That works very well for what I need.
Hi Peggy,
Thank you for your replies.
Glad that your issue has been resolved.
Please do not hesitate to contact me if any further questions regarding this matter arise.
Never Mind :) The databinder syntax above does work. Stupid user error - I was looking at the wrong data. Thanks for your patience!
I've tried setting the value of the controls to Value='<%# DataBinder.Eval(CType(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "fieldx") %>' but it doesn't work. Is the syntax different if I'm using a master page?
I am using the WebNumericEditor and the WebPercentEditor as the two controls in the templated column. How do I set the values of those controls to the value in the underlying data table that is bound to the grid?