[성현모] Overview 예외 추가
This commit is contained in:
@ -96,7 +96,7 @@
|
||||
|
||||
private void CellRender(DataGridCellRenderEventArgs<TDataModel> args)
|
||||
{
|
||||
if (args.Column.Property == null || !args.Column.Property.ToLower().Equals("testdate"))
|
||||
if (args.Column.Property == null)
|
||||
return;
|
||||
|
||||
int index = DataList.ToList().FindIndex(x => x.Equals(args.Data));
|
||||
@ -124,6 +124,26 @@
|
||||
if (rowCount > 0)
|
||||
args.Attributes.Add("rowspan", rowCount);
|
||||
}
|
||||
|
||||
if (args.Column.Property.ToLower().Equals("host"))
|
||||
{
|
||||
int rowCount = 0;
|
||||
var take = DataList.Skip(index).Take(((index / PageSize) + 1) * PageSize - index);
|
||||
foreach (var r in take)
|
||||
{
|
||||
if (r.Host == args.Data.Host)
|
||||
{
|
||||
rowCount += 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
args.Attributes.Clear();
|
||||
if (rowCount > 0)
|
||||
args.Attributes.Add("rowspan", rowCount);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task OnCellContextMenu(DataGridCellMouseEventArgs<TDataModel> args)
|
||||
|
||||
Reference in New Issue
Block a user