Hi all..
I have a textbox which contains value "rptl o & m".
I want select this row from gridview and display it on textbox.
But, the value that I get is "rptl o & m;m".
Please help me out with this & Sign.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Riddhi ValechaPosted Nov 11, 2013, 7:30 AM
GridView Design - AutoGenerateSelectButton=True;
-------
Then, On SelectedIndexChanged Event of GridView, the following code is there -
GridViewRow row = gridview.SelectedRow;
int id = convert.toint(row.Cells[1].text)
-------
The query is - Select * from tablename where ID=id;
-----
I get the record from database in datatable.
-----------
I fetch the values as-
foreach(Datarow dr in datatable.Rows())
{
textbox1.text = dr["columnname"].ToString();
}
----
The value changes here at - "dr["columnname"].ToString();
"
Jaganathan BantheswaranPosted Nov 11, 2013, 6:26 AM
show us the code?