Jump to content
fr33kyd33ky

2 DataGrids

Recommended Posts

i'm having trouble having 2 datagrids on the same page. if i have an edit column, how do i make the codebehind tell which datagrid i'm trying to edit? right now, if i click the edit button for an item on datagrid2, the appropriate index on datagrid1 will be the one chosen for editing.

Share this post


Link to post
Share on other sites
i'm having trouble having 2 datagrids on the same page. if i have an edit column, how do i make the codebehind tell which datagrid i'm trying to edit? right now, if i click the edit button for an item on datagrid2, the appropriate index on datagrid1 will be the one chosen for editing.

If I understood your problem, if you are using built-in Edit Column of datagrid then there is no confusion bcoz when u click on edit of an item on datagrid2 you have the DataGrid2_EditCommand() event which will take care of your datagrid.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...