如何在datagridview中添加文本框 [英] how can i add textbox in datagridview
本文介绍了如何在datagridview中添加文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我需要在gridview'中添加一个文本框,以便我可以在此文本框中输入值,因为我想在列中进行乘法,如价格和数量。
解决方案
您需要清除您的问题以获得正确的答案。您需要告诉您使用的平台是什么,是否在ASP.net中?
基本上。 。
DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn();
// 设置列的DataPropertyName,HeaderText,Name
dataGrid.Columns.Add (列);
这将为textbox提供技巧。您可以查看此链接,这将有助于更多..
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx?PHPSESSID=o1fb21liejulfgrptbmi9dec92 [ ^ ]
Hi I need to add a textbox in gridview''s so that i can enter value in this textbox because i want to do multiply in column like price and quantity.
解决方案
You need to clear your question to get a proper answer.You need to tell what platform are you using to do that,is it in ASP.net?
Basically..
DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn(); //set column's DataPropertyName, HeaderText, Name dataGrid.Columns.Add(column);
this will do the trick for textbox.You can view this link which will help more..
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx?PHPSESSID=o1fb21liejulfgrptbmi9dec92[^]
这篇关于如何在datagridview中添加文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文