Posted 12 December 2022, 1:27 pm EST
I downloaded the latest demo version of WinForms edition which includes C1ColorPicker. My earlier version did not have the ColorPicker component. I have used the following code in earlier versions to add other things to cells but now need a ColorPicker. The code below only shows the last cell added. Help please.
private void Form2_Load(object sender, EventArgs e)
{
C1ColorPicker colorEdit = new C1ColorPicker();;
_ = _sl.Add(new HostedControl(c1FlexGrid, colorEdit, 3, 3)); _ = _sl.Add(new HostedControl(c1FlexGrid, colorEdit, 4, 4)); } private void Form2_Paint(object sender, PaintEventArgs e) { foreach (HostedControl hosted in _sl) { _ = hosted.UpdatePosition(); } } }