Seems like you have:
ShowButton("btnUpdate", (!isEditMode));
ShowButton("btnDelete", (!isEditMode));
ShowButton("btnSave", isEditMode);
ShowButton("btnCancel", isEditMode);
instead of!:
ShowButton("btnUpdateBlend", (!isEditMode));
ShowButton("btnDeleteBlend", (!isEditMode));
ShowButton("btnSaveBlend", isEditMode);
ShowButton("btnCancelBlend", isEditMode);
It happens....good luck.
Juan M. Oviedo
> Date: Sun, 21 Dec 2008 19:08:57 -0800
> Subject: [DotNetDevelopment] GridView question - I'd like to solve this
> EVENTually...?! (heheh... heh...)
> From: [email protected]
> To: [email protected]
>
>
> Hello, could someone please help me with the VS 2008 website project
> I've linked below:
>
> http://rapidshare.com/files/175651724/WebApplication1.rar.html
>
> The RAR file's password is "darthcontinent".
>
> Basically, this is a website project which uses a GridView control to
> edit a couple of rows of data. The rows will initially be blank, be
> edited by the user, and eventually saved to a table. In the meantime,
> the user is given the option to Edit a particular row (you can ignore
> the Delete button for purposes of my question).
>
> I can run the project and choose the Edit button for a row of data,
> and the fields in this row become editable, which is super. However,
> the problem I'm having trouble wrapping my head around is that after
> the fields become editable, the Edit button should no longer say Edit,
> but instead should say Update (i.e. btnEdit is to be hidden, and
> btnUpdate becomes visible).
>
> If you attempt this process, you'll notice that you get an Object
> reference not set error when the code tries to act on a reference to
> the (at that point nonexistent) btnUpdate.
>
> Could someone please help me?! In debugging this I'm now quite
> confused about which events aren't firing or being handled in the
> right sequence to make this happen. If for any reason you can't
> download the file from the link above, please email me at
> DarthContinent (@) gmail.com and I can send it to you directly. Or if
> preferable I can post the code here, please let me know.
>
> Thanks in advance for any help!!
>
_________________________________________________________________
Send e-mail faster without improving your typing skills.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008