Get gridviedw cell value

时间:2015-10-29 15:42:50

标签: c# asp.net gridview

can anyone tell me how to get the value of desired cell in a column in gridview ?

this doesnt seem to work:

string idc = gvInfo.SelectedRow.Cells[0].Text;

can anyone help me for this? I know this is very basic but It seems that I haven't found anything useful so far.

here's my gridview:

<asp:GridView id="gvInfo" runat="server" AutoGenerateColumns="true" EmptyDataText="Sorry, No Results Found. Enter User again." Visible="true" />

0 个答案:

没有答案