This is a migrated thread and some comments may be shown as answers.

[Solved] Short Code needed

3 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
grand lorie
Top achievements
Rank 1
grand lorie asked on 05 Mar 2010, 08:37 PM
Hi all

Short VB code needed;

I have a grid with edit and add new record enabled, and by using a template for EditFormType i built my own input form.
the problem is that i need an insert / update button so:

+  when the user click edit,  the text on the button shows Update and when the user click Insert new record the button shows up as Insert.

Thanks

3 Answers, 1 is accepted

Sort by
0
grand lorie
Top achievements
Rank 1
answered on 07 Mar 2010, 01:21 PM
Is it too hard to achieve? or it is so simle that no one wanna bother?
0
Princy
Top achievements
Rank 2
answered on 08 Mar 2010, 10:30 AM
Hi,

Please  take a look at the link below. In it you will find how to differentiate between the modes in the design and code behind.In the code behind you can access the buttons in the ItemDataBound/ItemCreated events and set their text based on whether edit or insert.
  

Hope this helps.

Thanks,
Princy
0
grand lorie
Top achievements
Rank 1
answered on 08 Mar 2010, 05:15 PM
Thanks Princy

The link helped me a lot

once again thanks

Tags
Grid
Asked by
grand lorie
Top achievements
Rank 1
Answers by
grand lorie
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or