Click here to Skip to main content
15,895,192 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a gridview...i take a literal at the 3rd column..i want this column get its text from a textbox dynamical...this textbox is outside of the grid...how to do this??
Posted
Comments
Gaurav Makwana 20-Dec-13 7:41am    
fetch third column
create texbox dynamically
textboxname = ds.tables[0].columns["3rdcolumnname"].tostring();
ZurdoDev 20-Dec-13 12:53pm    
What?

1 solution

As far as I know you can't bind the textbox to a column but you can send the text to a cell within the column.
MyGrid[3, rowindex].value = textbox1.text;

you will need to add this to the TextChanged event for the textbox. Make sure your column ValueType is capable of receiving string type or you may get an exception.
 
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