Hi all,

I have 2 datagrids on a page.  I am able to highlight a row from 
each datagrid.  Here is the code I use to highlight a row on each 
grid:

Grid 1:

Private Sub dgYourSuppliers_ItemDataBound(ByVal sender As Object, 
ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles 
dgYourSuppliers.ItemDataBound
        If e.Item.ItemType = ListItemType.AlternatingItem Or 
e.Item.ItemType = ListItemType.Item Then
                        e.Item.Attributes.Add
("onclick", "this.style.backgroundColor='blue'")
        End If
End Sub

Grid 2:

Private Sub dgMasterSuppliers_ItemDataBound(ByVal sender As Object, 
ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles 
dgMasterSuppliers.ItemDataBound
        If e.Item.ItemType = ListItemType.AlternatingItem Or 
e.Item.ItemType = ListItemType.Item Then
                        e.Item.Attributes.Add
("onclick", "this.style.backgroundColor='blue'")
        End If
End Sub

So now I want to click a button server control and determine the 
highlighted rows in both grids.  I cannot get this to work.

Thanks,
Bob









------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to