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
baskerganesa...
Member
253 Points
367 Posts
obout grid view
Dec 28, 2012 09:57 AM|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?
SohailShaikh
Contributor
6119 Points
1167 Posts
Re: obout grid view
Dec 28, 2012 10:11 AM|LINK
you have to bind again data in grid i already use this grid in past
Sohail Shaikh
baskerganesa...
Member
253 Points
367 Posts
Re: obout grid view
Dec 28, 2012 10:20 AM|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
Anil Srivast...
Member
442 Points
292 Posts
Re: obout grid view
Dec 28, 2012 10:25 AM|LINK
http://www.codeproject.com/Articles/12666/GridView-Delete-with-Confirmation
http://www.dotnetfunda.com/articles/article29.aspx
baskerganesa...
Member
253 Points
367 Posts
Re: obout grid view
Dec 28, 2012 11:12 AM|LINK
@Anil,
This link is for grid view. I want for obout . Please give some other link or solution