private void dataGrid1_LoadingRow(object sender, DataGridRowEventArgs e) { e.Row.Header = e.Row.GetIndex() + 1; }
效果:
Powered by: 博客园 Copyright © 2024 cbtech Powered by .NET 8.0 on Kubernetes