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

Now I want to click a button server control and determine the
highlighted rows in both grids. I cannot get this to work.  I know 
how to do this by doing a postback when a row in each grid is 
clicked but I only want to postback when my button is clicked.  Can 
anyone help me out?

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