Hi,
I am using infragistics V9.2 for my application. Recently was given a requirement to add textboxes into the grid cells.
Is this possible to add an editable cell with text box appearance as like the screenshot attached?
From one of the samples given by infragistics I have got these two lines of code that gives the text box appearance from the grid level but not at the cell level.
ultraGrid1.DisplayLayout.Override.BorderStyleCell = (isChecked ? Infragistics.Win.UIElementBorderStyle.Inset : Infragistics.Win.UIElementBorderStyle.Default);
ultraGrid1.DisplayLayout.Override.BorderStyleRow = (isChecked ? Infragistics.Win.UIElementBorderStyle.RaisedSoft : Infragistics.Win.UIElementBorderStyle.Default);
Please help me out with this issue. If possible please provide some code sample to achieve this. Thank you so much for your help.
Could someone please help us out?
I don't see any easy way to do this. Perhaps what you could do is use the column's CellAppearance and apply an ImageBackGround on the cell. But that would just show the box, it would not limit the text to that area. You might be able to use the CellPadding property to force the text into the middle of the cell, though. It would be a little tricky, and I'm not sure it would work.
The other option would be to create your own UserControl with a TextBox or UltraTextEditor on it with some space around the edges and then use the new UltraControlContainerEditor component to embed it in the grid cell.