S
susie
I have another issue coming up after I am able to sort the
records in asc and desc.
The sorting function is created in master sheet.
The first column were created as linkbuttons and will not
be sorted.
The following code is for the first column linked button.
Sub Master_ItemCommand( s As Object, e As
DataGridCommandEventArgs )
intJobNum=Master.DataKeys(e.Item.ItemIndex)
Master.SelectedIndex = e.Item.ItemIndex
BindDetailGrid
End Sub
However I found that the above function(or sub routine)
interfers with sort functions.
I am no long able to use the sorting function unless I
comment out the above sub routine.
It seems like that ItemIndex referred to all the linked
items in the master sheet since sorting function turn the
headings into linked items.
How can refer to the Item in the first column(linked
button column) only in my Master_ItemCommand ?
I can not use Cells(0).Controls(1) directedly because cell
is not an item in DataGrid.
Do you have any suggestions?
records in asc and desc.
The sorting function is created in master sheet.
The first column were created as linkbuttons and will not
be sorted.
The following code is for the first column linked button.
Sub Master_ItemCommand( s As Object, e As
DataGridCommandEventArgs )
intJobNum=Master.DataKeys(e.Item.ItemIndex)
Master.SelectedIndex = e.Item.ItemIndex
BindDetailGrid
End Sub
However I found that the above function(or sub routine)
interfers with sort functions.
I am no long able to use the sorting function unless I
comment out the above sub routine.
It seems like that ItemIndex referred to all the linked
items in the master sheet since sorting function turn the
headings into linked items.
How can refer to the Item in the first column(linked
button column) only in my Master_ItemCommand ?
I can not use Cells(0).Controls(1) directedly because cell
is not an item in DataGrid.
Do you have any suggestions?