Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
Jibesh 29-Dec-12 4:05am    
textbox is already supported by gridview. what did you try so far?
Avinash_Pathak 29-Dec-12 5:36am    
add textbox in templatefield...in that itemtemplate and take textbox
Jibesh 29-Dec-12 6:21am    
was it web grid or win forms grid? can you provide some more details about the query.

1 solution

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..
C#
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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900