|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Accessing Datagrid Cells on OnClick PostbackHi,
I have a datagrid which has a link button template column. In the 'on click' event of this link button - which does a postback - I need to reference the value of another control on the same row on which the link button was clicked. Is there an easy way to do that? Thanks, John Protected Sub DataGrid1_Command(ByVal sender As Object, ByVal e As
DataGridCommandEventArgs) Handles datagrid1.ItemCommand 'use the e.Item.Cells collection to refer to any column on this row 'use the e.Item.FindControl (ControlID) to find a named control within a template End Sub Show quoteHide quote "John Walker" wrote: > Hi, > I have a datagrid which has a link button template column. In the 'on > click' event of this link button - which does a postback - I need to > reference the value of another control on the same row on which the link > button was clicked. Is there an easy way to do that? > Thanks, > John
Menu Control
looking for a special kind of table control Control-level security Paging and Filtering in Gridview (.NET 2.0) Question on Submit all fields on a tabstrip that is using multipage DataGrid dynamic columns / firing events ObjectDataSource XML Editor The mystery of passing form values How can I prevent a GridView from opening when the page is firstentered ? |
|||||||||||||||||||||||