I have a rad grid, i have bounded the columns in the grid using GripBoundColumns which shows me dropdown cloumns when i edit the record, Insert/update/delete are working fine for me.
My question is it possible to insert new data into the column(Not the whole record just only to one column) when i edit the record.
For example...
suppose i have 5 columns (Client Name, Account No, Account name, account status, Custodian Dealer)
CustodianDealer is my drop down coloumn and data for it comes from different table
when i edit or insert a new record in the grid, i can select the existing Custodiandealers in the table.
now if i want to insert a new record to the custodianDealer table not to the grid, how can i acheive it
0
A
回答
0
ItemDataBound事件中尝试是这样的:
If TypeOf (e.Item) Is GridDataItem Then
Dim GDI As GridDataItem = CType(e.Item, GridDataItem)
GDI([ColumnNameAsString]).Text = "Some custom text"
End If
的GridDataItem本质上是一个TableCell的,所以您可以根据需要添加控件。
哦,如果从我的符号中不清楚,“[ColumnNameAsString]”是您自己的列名称。
0
连线网格插入命令并执行插入查询,该查询仅使用新条目更新Custodiandealers表。要在下拉式编辑器中显示它,请确保新记录与网格主表来源具有外部关系,作为Custodiandealers表中的其余项目。
+0
你能提供给我一个小例子来做到这一点 – Sravanthi 2010-12-10 14:44:36
0
因此,如果我正确地阅读了您的问题,您正试图根据编辑/插入期间所做的某些更改将记录插入到custodianDealer表中。
如果是这种情况,您可以处理ItemCommand事件并根据这些更改更新您的数据表。
你能否提供用例的确切细节?
相关问题
- 1. 在运行时将行和列添加到WPF数据网格
- 2. 将特定参数添加到WPF中的数据网格
- 3. 在运行时将特定特征添加到类
- 4. 在ExtJS中,如何将自定义CSS类添加到数据网格行?
- 5. 如何将加入的列添加到数据网格视图
- 6. 如何将数据添加到现有表中的特定列?
- 7. 如何将数据添加到datagridview中的特定列?
- 8. Winforms将列添加到数据绑定数据网格
- 9. 如何在运行时将行添加到wpf应用程序中的数据网格?
- 10. 在运行时将文本框值添加到网格
- 11. 如何添加行绑定多列数据网格(Silverlight的4.0)
- 12. 添加css运行时到表格行和数据绑定行
- 13. 如何将新列添加到网格?
- 14. 如何将行添加到GXT网格
- 15. Java:如何在运行时将数据库中的属性添加到ResourceBundle?
- 16. 如何在运行时将绑定添加到TIdTCPServer?
- 17. 如何在运行时添加新列?
- 18. 如何将特定数量的行添加到C#.net中的数据表中?
- 19. 如何将复选框添加到vb.net中的数据网格
- 20. 如何将数据网格添加到winforms中的组合框?
- 21. 如何选择数据并将其添加到特定行?
- 22. 如何在特定位置添加网格线到情节?
- 23. 将列添加到GridView数据源并在运行时将数据绑定到它,C#
- 24. 将数据添加到列表中并将其显示在网格中
- 25. 将信息添加到不在数据网格中的DataNavigateUrlFormatString
- 26. Ext Js如何将组合框添加到网格中的特定单元格?
- 27. 如何将行添加到在C#2.0中具有列的网格视图?
- 28. 需要在WPF的数据网格中添加新行并添加特定数据,每次点击按钮
- 29. 在运行时将一个TextEdit添加到DevExpress GridView的列中
- 30. 如何在一行或剑道中添加数据网格
我已经更新了后用一个例子 – Sravanthi 2010-12-09 19:53:22
上面的代码不会对我的问题的工作 – Sravanthi 2010-12-09 21:21:47