Click here to Skip to main content
15,917,642 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to get selected row in of gridview i string
Posted
Comments
Karthik_Mahalingam 26-Nov-13 8:52am    
u mean to ask as particular column value or what u trying to ask??
please explain in detail..
Richard MacCutchan 26-Nov-13 8:55am    
You need to get the contents of each cell in the row, and concatenate them into a string.

1 solution

string str = dtBuyGrd.Rows[0]["Id"].ToString() +","+ dtBuyGrd.Rows[0]["Name"].ToString();

use your code like hope its work!!
reply..
 
Share this answer
 
v2

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