新增tavleView控件,初步可用
This commit is contained in:
@@ -54,6 +54,15 @@ void mainForm::OnNotify(Control* sender, EventArgs& args)
|
||||
textAdmin->Insert(L"\n测试成功!",true);
|
||||
textAdmin->GetScrollBar()->ScrollTo(1.0);
|
||||
}
|
||||
|
||||
TableView* tableView = (TableView*)FindControl("tableViewAdmin"); //获取表格控件
|
||||
if (tableView) {
|
||||
tableView->SetColumnType(4, ezui::CellType::CheckBox);
|
||||
tableView->SetColumnType(5, ezui::CellType::ComboBox);
|
||||
tableView->SetColumnComboItems(5, {L"选择1", L"选择2" , L"选择3" });
|
||||
tableView->InsertRow(1);
|
||||
tableView->SetRowData(tableView->GetRowCount() - 1, {L"uid1", L"192.168.200.131"});
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user