Skip to content

[IgbGrid] DateTime value becomes string when using UpdateCellAsync or UpdateRowAsync #177

@TomoyaWashio

Description

@TomoyaWashio

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

  1. Create a grid (IgbGrid) with a DateTime column.
  2. Use UpdateCellAsync or UpdateRowAsync to set a new DateTime value.
  3. Retrieve the value using GetCellByKeyAsync(...).Value.
  4. 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

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions