views:

506

answers:

1

Currently I am highlighting the rows on my gridview through code behind. The problem is when I inserted a new data through formview, I put the highlight on the new data but if you click edit or delete if would go for either the first data on the grid if you have not selected anything yet or the last data you have selected. Thanks.

A: 

According to the MSDN Documentation, GridView.SelectedDataKey its a read only property.

You may want to check the documentation for GridView.SelectedPersistedKey which is settable.

Soviut
Still readonly. I cannot assigned a value for my key. Thanks