Hi,
I have an UltraWinGrid on my APP that has a cell with a DropDownCalendar Style.
When I pick a date, it shows the date on the cell on the format, p. e., 19/09/2012. I save the value and I open my APP again and it shows "19092012".
I've tried to set the value on the INitializeLayout event with this code:
DateTime dt = Convert.ToDateTime(el.New); row.Cells["Value"].SetValue(dt, false);
DateTime dt = Convert.ToDateTime(el.New);
string date;
date = dt.Day + "/" + dt.Month + "/" + dt.Year;row.Cells["Value"].SetValue(date, false);
But, it doesn't worked.
Can you help me? Thank you.
Best regards,
Maria
Hello Maria,
Could you please try to attach if possible a small sample project reproducing the above mentioned issue, I will be happy to take a look at it.
Yes, I will explain properly.
First, I have a Cell with DropDownCalendar Style:
e.Row.Cells["Value"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownCalendar;
Then I run my APP and chose a date, per example, today:
- When the cell has focus, cell's text display "19-09-2012";
- When the cell loose focus, cell's text display "19092012".
Was I clear?
Thanks
I've read the discussion but I have a several doubts. I don't find the component ultraMaskedEdit.
Can you please explain me how to set a Cell InputMask ?
Thank you.
You should add a reference in your project, pointing this assembly - Infragistics2.Win.UltraWinMaskedEdit.v12.1.
Then you could access the control class by: Infragistics.Win.UltraWinMaskedEdit.
So, creating an object from that should look like this:
Infragistics.Win.UltraWinMaskedEdit maskedEdit = new Infragistics.Win.UltraWinMaskedEdit();
Please feel free to let me know if a question about our toolset comes up on your mind.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
I don't find this assembly on my machine.
This is the only way to do this?
Thank you,
If you have our controls, this one should be there also. If you drag it out from the toolbox it should add the references to the DLL library by itself. It should be there unless you have asked for just certain controls, not our whole package. Is this the case?
Hello Boris,
I finally solve my problem adding this code to InitializeLayout event:
this.MyGrid.DisplayLayout.Bands[0].Columns["MyColumn"].CellClickAction = CellClickAction.RowSelect; this.MyGrid.DisplayLayout.Bands[0].Columns["MyColumn"].CellActivation = Activation.NoEdit; this.MyGrid.DisplayLayout.Bands[0].Columns["MyColumn"].UseEditorMaskSettings = true;
Thank you for your help.
I am using v12.1.2054, this does not stop you though, I mean, you could 'Remove' my references and then add your own, installed in the Global Assembly Cache.
I try to open and execute your solution but it doesn't recognize your reference Infragistcs.
Witch one do you use ?
Thanks,
maria
This is working fine in my sample. Please take a look at the attached project.
Hello,
I've tried to do what your suggested and it doesn't work. The first time that I click on the cell it just activates it.
In ClickCell event i'm doing:
e.Cell.EditorComponent = null; e.Cell.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownCalendar; e.Cell.DroppedDown = true;
What can I do more to solve the problem?