c# - grid view selected row data -



c# - grid view selected row data -

i getting info gridview on rowcommand event next code

protected void gridview2_rowcommand(object sender, gridviewcommandeventargs e) { if (e.commandname == "editproject") { string rowindex = e.commandargument.tostring(); int index = int.parse(rowindex); gridviewrow row = gridview2.rows[index]; label6.text = row.cells[1].text; } }

but give info of field visible in gridview row .how can field not visible bound gridview.

you can't value set invisible because these not rendered @ client side , can't grabbed on server side.

alternatively can store value in hidden field , can hidden field.

c# .net asp.net visual-studio gridview

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -