Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hi friends,

 

 

i had an asp.net datagrid with edit and delete buttons as itemtemplates

when i click edit button i am going to edit form and after editing i am returning to

the page with datagrid.

i want the row from which i clicked edit to be highlighted.

i tried using itemdatabound but i couldn't get.

 

ny ideas or suggestions?

 

Thanks

Posted

put this in DataGrid2_EditCommand

 

the first line is really what you need but i've included the others just so you can see how to handle diffrent parts of the grid

 

DataGrid2.Items(DataGrid2.EditItemIndex).BackColor = Color.Azure

CType(DataGrid2.Items(DataGrid2.EditItemIndex).Cells(3).Controls(0), TextBox).Enabled = False

DataGrid2.Items(DataGrid2.EditItemIndex).Cells(3).BackColor = Color.Black

 

hope this helps

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.

×
×
  • Create New...