Description
When updating a cell or row in IgbGrid using either UpdateCellAsync or UpdateRowAsync, a DateTime value is unexpectedly converted to a string (e.g., "2025-01-01T00:00:00"). As a result, GetCellByKeyAsync(...).Value.GetType() returns System.String instead of the expected System.DateTime.
Steps to reproduce
- Create a grid (
IgbGrid) with a DateTime column.
- Use
UpdateCellAsync or UpdateRowAsync to set a new DateTime value.
- Retrieve the value using
GetCellByKeyAsync(...).Value.
- Check the type with
.GetType() — it is string, not DateTime.
Result
The Value becomes a serialized string, such as "2025-01-01T00:00:00", and its type is System.String.
Expected result
The Value property should preserve the original DateTime type after update, just as it does during initial data binding.
Attachments
C_00242624_BlazorServerApp1.zip
Description
When updating a cell or row in
IgbGridusing eitherUpdateCellAsyncorUpdateRowAsync, aDateTimevalue is unexpectedly converted to a string (e.g.,"2025-01-01T00:00:00"). As a result,GetCellByKeyAsync(...).Value.GetType()returnsSystem.Stringinstead of the expectedSystem.DateTime.Steps to reproduce
IgbGrid) with aDateTimecolumn.UpdateCellAsyncorUpdateRowAsyncto set a newDateTimevalue.GetCellByKeyAsync(...).Value..GetType()— it isstring, notDateTime.Result
The
Valuebecomes a serialized string, such as"2025-01-01T00:00:00", and its type isSystem.String.Expected result
The
Valueproperty should preserve the originalDateTimetype after update, just as it does during initial data binding.Attachments
C_00242624_BlazorServerApp1.zip