Skip to content

Commit

Permalink
DataGrid will use column index instead GUID for UniqueID
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Aug 10, 2023
1 parent ec6747a commit b81d15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Radzen.Blazor/RadzenDataGridColumn.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ internal int GetRowSpan(bool isDataCell = false)
/// </summary>
protected override void OnInitialized()
{
UniqueID = Convert.ToBase64String(Guid.NewGuid().ToByteArray()).Replace("/", "-").Replace("+", "-").Substring(0, 10);
UniqueID = $"Column{Grid.ColumnsCollection.IndexOf(this)}";

if (Grid != null)
{
Expand Down

0 comments on commit b81d15c

Please sign in to comment.