Thank you for your answer.<BR><BR>Well, this is the details. I have added the filter-prosess to a button-column. This means that when I click on an item in the column the grid filters by that item. The problem appears to be that it filters by rownumber. Then when I've clicked one item in the buttoncolumn and it has filtered by that row it displayes only the similar items in the grid, but the select/link-function is still there. Clicking an item in the filtered list then suddenly might filter by a completely different item than the first, since it still filters by rownumber instead of name. Maybe not a very good explanation, but hopefully I've made it clearer. <BR>C:)
Hmmm, I think I understand what it is that you are saying.<BR><BR>I would use the ItemCreated event handler to disable the Button *if* the grid is currently being filtered.<BR><BR>Maybe like this (in psuedo-code):<BR><BR>-----------------------------------<BR><BR>Dim curRow As DataGridItem = e.Item<BR><BR>If (curRow.ItemType = ListItemType.Item) Or _<BR> (curRow.ItemType = ListItemType.AlternatingItem) Or <BR> (curRow.ItemType = ListItemType.SelectedItem) Then<BR><BR> Dim cell As TableCell<BR> Dim btn As Button<BR> <BR> cell = curRow.Cells(0)<BR> If (TypeOf cell.Controls(0) Is Button) Then<BR> CType(cell.Controls(0), Button).Enabled = False<BR> End If<BR>End If
I dunno, without checking the docs - which I don't currently have time to do. It shouldn't be too hard though.<BR><BR>Perhaps load the template column dynamically at runtime or something - conditional to whether or not the grid is currently being filtered.<BR><BR>Or... set the Visible property on the Column.<BR><BR>Or... do what I said in my last e-mail about disabling the Buttons.