Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Kristopher Davis   on Oct 19 In Asp.net Category.

  
Question Answered By: Devlan Jones   on Oct 19

Having said that this doesn't look right

DataGrid1.EditItemIndex = -1
BindGrid()
DataGrid1.EditItemIndex = objARgs.Item.ItemIndex

it should be

DataGrid1.EditItemIndex = -1
DataGrid1.EditItemIndex = objARgs.Item.ItemIndex
BindGrid()

else you don't bind till th enext time round, well you do, but you bind to -1.

In your current code  click the same edit button  twice and it will work  ( I
suspect).

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Button in datagrid Or get search suggestion and latest updates.


Tagged: