Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道可以将 GridView 控件中的某些列更改为复选框,并且当您编辑某些行时,被高亮的单元格变成文本框,但假设我想在我的 gridView 中添加其他控件。例如:在下图中,我如何将 CategoryName 的条目更改为可能选择的下拉框?
[Full size]
使用 TemplateField 并定义 EditItemTemplate 中的控件。
阅读本文作为起点。