J
janetb
I'm making first, last, next, prev buttons that are outside of the datagrid.
The labels/buttons that are assigned value/commands respectively based on
which row of the datagrid is selected. Then, if the button outside the
datagrid is pushed, I want it to go to the correct row of the datagrid and
display a hidden cell of the datagrid in a label field. What is the correct
syntax for pulling a datagrid's hidden column based on a button click outside
of the datagrid? If you look at the code below, the correct row in the
datagrid is highlighted when I push the next button, but I can't get the
syntax right to have the lblPgTitle display the hidden cell of the datagrid.
(datagrid cell specifically is DataField="pgTitle")
sub pgNext(sender as object, e as eventArgs)
dim n as integer=cint(lblNext.text)
dgNavList.selectedIndex=n
lblPgTitle.text=dgNavList.item.cells(1).text
end sub
Many thanks for any help.... Janet
The labels/buttons that are assigned value/commands respectively based on
which row of the datagrid is selected. Then, if the button outside the
datagrid is pushed, I want it to go to the correct row of the datagrid and
display a hidden cell of the datagrid in a label field. What is the correct
syntax for pulling a datagrid's hidden column based on a button click outside
of the datagrid? If you look at the code below, the correct row in the
datagrid is highlighted when I push the next button, but I can't get the
syntax right to have the lblPgTitle display the hidden cell of the datagrid.
(datagrid cell specifically is DataField="pgTitle")
sub pgNext(sender as object, e as eventArgs)
dim n as integer=cint(lblNext.text)
dgNavList.selectedIndex=n
lblPgTitle.text=dgNavList.item.cells(1).text
end sub
Many thanks for any help.... Janet