Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use Gridview.
And use below code for get the selected cell value. But I got string mn is " "
GridViewRow row = gridloanofficer.SelectedRow;
string mn = row.Cells[1].Text.ToString();
Posted
Updated 18-May-10 4:12am
v2

1 solution

Due to scarcity of information in your question, I am assuming few things:
i) You are using a GridView.
ii) You need data key value of the selected row.

This can be done using GridView.SelectedValue Property[^].

If this is not what you wanted to ask, you need to add more details to your question.
 
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