i have a gridview with a text box in it, i understand that i can use CommandArgument='<%# Eval("MyGridViewData")%>' to get the data in the gridview.. But i have no idea how to get the textbox value inside the gridview .. Can anyone help me? :(
mandyCheong
0
Newbie Poster
Recommended Answers
Jump to PostThe row and cell index's are dependent on which row and cell you want to store the value:
This is for the first cell of the first row
dataGridView.Rows[0].cells[0].value = textBox1.Text;
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.