Click here to Skip to main content
15,911,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i place a textbox in datagridview and type in that in c# windows application
Posted

Is suggest you start with this really exhaustive tutorial: A Detailed Data Binding Tutorial[^]
 
Share this answer
 
in datagridview Add column of type DatagridviewTextBoxColumn
this will allow you to write text in datagridview

Happy Coding!
:)
 
Share this answer
 
Comments
Sharon 2 3-Apr-13 4:49am    
how can i access that value means for example how to display total by taking value of rate and quantity
Aarti Meswania 3-Apr-13 4:53am    
inside cellvaluechanged event
write code like below...

int qty =datagridview1.rows(e.rowindex).cells("Colqty").value
int rate =datagridview1.rows(e.rowindex).cells("ColRate").value
datagridview1.rows(e.rowindex).cells("ColAmt").value = qty * rate
Sharon 2 3-Apr-13 6:01am    
thanks can please tell me how to give header text to each cell in datagridview
Aarti Meswania 3-Apr-13 6:03am    
headertext is applied on column not cell

this way... for example...
datagridview1.Columns["ColName"].HeaderText = "Customer Name"
Sharon 2 3-Apr-13 6:15am    
when i gave this header text is coming only for one column means if we are giving to all for 1st one it will come if giving to last means last will only come...........
 
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