Hello All,
I am having Trouble with a Gridview control In my asp.net/C# application. It contains Some boundFields and one checkbox field. My gridview allows Editing. It succesfully enters edit mode and when i hit update the Datasource updates but the control will not return to readonly mode. I have gone far enough to figure out the problem is caused by the Checkbox field. When i Make it readonly and remove that value from my Stored Procedure the Gridview control works normal. The checkbox works and passes the correct true.false value to the datasource but will not bind after update. Please help..
Gridview Not Changing to Readonly after Update
Page 1 of 13 Replies - 2179 Views - Last Post: 23 July 2012 - 01:36 AM
Replies To: Gridview Not Changing to Readonly after Update
#2
Re: Gridview Not Changing to Readonly after Update
Posted 19 August 2009 - 07:20 AM
Maybe you can show us some code?
#3
Re: Gridview Not Changing to Readonly after Update
Posted 23 August 2009 - 08:33 PM
stefbek97, on 18 Aug, 2009 - 04:26 PM, said:
Hello All,
I am having Trouble with a Gridview control In my asp.net/C# application. It contains Some boundFields and one checkbox field. My gridview allows Editing. It succesfully enters edit mode and when i hit update the Datasource updates but the control will not return to readonly mode. I have gone far enough to figure out the problem is caused by the Checkbox field. When i Make it readonly and remove that value from my Stored Procedure the Gridview control works normal. The checkbox works and passes the correct true.false value to the datasource but will not bind after update. Please help..
I am having Trouble with a Gridview control In my asp.net/C# application. It contains Some boundFields and one checkbox field. My gridview allows Editing. It succesfully enters edit mode and when i hit update the Datasource updates but the control will not return to readonly mode. I have gone far enough to figure out the problem is caused by the Checkbox field. When i Make it readonly and remove that value from my Stored Procedure the Gridview control works normal. The checkbox works and passes the correct true.false value to the datasource but will not bind after update. Please help..
you probably aren't setting the EditIndex on the gridview back to -1
#4
Re: Gridview Not Changing to Readonly after Update
Posted 23 July 2012 - 01:36 AM
stefbek97, on 18 August 2009 - 05:26 PM, said:
Hello All,
I am having Trouble with a Gridview control In my asp.net/C# application. It contains Some boundFields and one checkbox field. My gridview allows Editing. It succesfully enters edit mode and when i hit update the Datasource updates but the control will not return to readonly mode. I have gone far enough to figure out the problem is caused by the Checkbox field. When i Make it readonly and remove that value from my Stored Procedure the Gridview control works normal. The checkbox works and passes the correct true.false value to the datasource but will not bind after update. Please help..
I am having Trouble with a Gridview control In my asp.net/C# application. It contains Some boundFields and one checkbox field. My gridview allows Editing. It succesfully enters edit mode and when i hit update the Datasource updates but the control will not return to readonly mode. I have gone far enough to figure out the problem is caused by the Checkbox field. When i Make it readonly and remove that value from my Stored Procedure the Gridview control works normal. The checkbox works and passes the correct true.false value to the datasource but will not bind after update. Please help..
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|