Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 20, 2012 05:09 PM by slnit
0 Points
5 Posts
Nov 15, 2012 10:39 PM|LINK
Hi, I have a problem when I want to edit in GridView aspx.net the update It's works but then my gridview dissapear, can you help me please?. Thanks and best regards.
Participant
1543 Points
428 Posts
Nov 15, 2012 11:02 PM|LINK
You might beed to handle that event in the code behind. (write the event handler in C#)
Please refer this manual page : http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowediting.aspx
--- If this helped you please mark it as answer, That helps pilgrim searching for specific answer, and adds enthusiasm to the contributor ;-)
All-Star
31826 Points
6513 Posts
Nov 15, 2012 11:40 PM|LINK
I think the problem is after update data then you try to call databind, but missing some parameter value for where condition.
Nov 16, 2012 12:07 AM|LINK
oned_gk I think the problem is after update data then you try to call databind, but missing some parameter value for where condition.
Yes You right, after update I run databind and the gridview never disappear again. Thanks a lot.
Nov 16, 2012 08:25 PM|LINK
can we make sure that we are calling <gridviewID>.Databind() at the end of the update ?
Nov 19, 2012 12:45 PM|LINK
May I please request you to mark the post as an answer that helped you Or, post the solution that worked for you ? Thanks !
16006 Points
1728 Posts
Microsoft
Nov 20, 2012 08:05 AM|LINK
Please post you html markup and code. thanks
and this sample may be helpful to you
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html
Nov 20, 2012 05:09 PM|LINK
aarsh May I please request you to mark the post as an answer that helped you Or, post the solution that worked for you ? Thanks !
i used this method every change in the grid, regards.
protected void GetData() { string sQuerySelectData = "Select "; SqlDSData.SelectCommand = sQuerySelectData; SqlDSData.DataBind(); }
slnit
0 Points
5 Posts
GridView hide when I edit Row
Nov 15, 2012 10:39 PM|LINK
Hi, I have a problem when I want to edit in GridView aspx.net the update It's works but then my gridview dissapear, can you help me please?. Thanks and best regards.
aarsh
Participant
1543 Points
428 Posts
Re: GridView hide when I edit Row
Nov 15, 2012 11:02 PM|LINK
You might beed to handle that event in the code behind. (write the event handler in C#)
Please refer this manual page : http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowediting.aspx
---
If this helped you please mark it as answer, That helps pilgrim searching for specific answer, and adds enthusiasm to the contributor ;-)
oned_gk
All-Star
31826 Points
6513 Posts
Re: GridView hide when I edit Row
Nov 15, 2012 11:40 PM|LINK
I think the problem is after update data then you try to call databind, but missing some parameter value for where condition.
slnit
0 Points
5 Posts
Re: GridView hide when I edit Row
Nov 16, 2012 12:07 AM|LINK
Yes You right, after update I run databind and the gridview never disappear again. Thanks a lot.
aarsh
Participant
1543 Points
428 Posts
Re: GridView hide when I edit Row
Nov 16, 2012 08:25 PM|LINK
can we make sure that we are calling <gridviewID>.Databind() at the end of the update ?
aarsh
Participant
1543 Points
428 Posts
Re: GridView hide when I edit Row
Nov 19, 2012 12:45 PM|LINK
May I please request you to mark the post as an answer that helped you Or, post the solution that worked for you ? Thanks !
Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: GridView hide when I edit Row
Nov 20, 2012 08:05 AM|LINK
Please post you html markup and code. thanks
and this sample may be helpful to you
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html
Feedback to us
Develop and promote your apps in Windows Store
slnit
0 Points
5 Posts
Re: GridView hide when I edit Row
Nov 20, 2012 05:09 PM|LINK
i used this method every change in the grid, regards.
protected void GetData()
{
string sQuerySelectData = "Select ";
SqlDSData.SelectCommand = sQuerySelectData;
SqlDSData.DataBind();
}