I am using Obout grid view. here i used on linkbutton for deleting selected record. Everything is fine.
delete operation is performing fine. After deletion operation eventhough that deleted record is not in grid. But still OboutGrid.SelectedRecord has last deleted record value.
Now i want to deleting/Clear that record . values should get clear from SelectedRecord also.
problem is - > below to the grid i have one button for redirect next page.
During deletion . when i click delete link button , that row is in selectedRecord memory. After that deletion still that deleted row values in selectedRecord
So if i click that button below to the grid. it is redirecting to next page even if i did not select any row from grid.
if (ogridProfileList.SelectedRecords != null) // ogridProfileList.SelectedRecord has previously deleted record in memory . so it is redirect
{ // next page
Response.Redirect(sample.aspx);
}
This is my problem. I want to clear this selectedRecords memory after deletion
Member
186 Points
362 Posts
obout grid view
Dec 28, 2012 05:57 AM|baskerganesan|LINK
Hi All
I am using Obout grid view. here i used on linkbutton for deleting selected record. Everything is fine.
delete operation is performing fine. After deletion operation eventhough that deleted record is not in grid. But still OboutGrid.SelectedRecord has last deleted record value.
Now i want to deleting/Clear that record . values should get clear from SelectedRecord also.
How can i do this?
Contributor
4073 Points
1142 Posts
Re: obout grid view
Dec 28, 2012 06:11 AM|SohailShaikh|LINK
you have to bind again data in grid i already use this grid in past
Sohail Shaikh
Member
186 Points
362 Posts
Re: obout grid view
Dec 28, 2012 06:20 AM|baskerganesan|LINK
@Sohail
yeah binding gird with data.
problem is - > below to the grid i have one button for redirect next page.
During deletion . when i click delete link button , that row is in selectedRecord memory. After that deletion still that deleted row values in selectedRecord
So if i click that button below to the grid. it is redirecting to next page even if i did not select any row from grid.
if (ogridProfileList.SelectedRecords != null) // ogridProfileList.SelectedRecord has previously deleted record in memory . so it is redirect
{ // next page
Response.Redirect(sample.aspx);
}
This is my problem. I want to clear this selectedRecords memory after deletion
Member
552 Points
591 Posts
Re: obout grid view
Dec 28, 2012 06:25 AM|Anil Srivastava|LINK
http://www.codeproject.com/Articles/12666/GridView-Delete-with-Confirmation
http://www.dotnetfunda.com/articles/article29.aspx
Member
186 Points
362 Posts
Re: obout grid view
Dec 28, 2012 07:12 AM|baskerganesan|LINK
@Anil,
This link is for grid view. I want for obout . Please give some other link or solution