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
1540
Date on a UltraGrid Cell
posted

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

Parents Reply Children
No Data