joeydaly.com … tech blog & sometimes more

25Nov/110

ASPxGridview – Specified method is not supported

Posted by Joey

I keep getting this error whenever I create a new ASPxGridView with RowUpdating/RowInserting/RowDeleting.

Basically my code behind looks like so:

1

Originally when I first create… Continue reading

14Nov/110

DevExpress: Remove old toolbox items in Visual Studio

Posted by Joey

This is a common error I’ve had since upgrading to the newest DevExpress Tools, so today I decided enough is enough!
Well actually it was after I had numerous errors after accidentally dragging the wrong ASPxGridView toolbox item. I dragged the v9.3 instead of v11.1.

These are the steps I did to fix this.

Go… Continue reading

28Oct/110

ASPxGridView: How to remove command buttons on individual rows

Posted by Joey

I’ve had this come up many times. Let say we want a grid for users.
You have a GridView with some data columns e.g. Id, Name, Email and then you have 3 command buttons; View, Edit & Delete.

If we had an Admin as a user we don’t want a delete button to render against that user. So how do we do this?

Using CommandButtonInitialize, as the name… Continue reading

15Sep/110

DevExpress.Web.ASPxGridView.ASPxGridViewBehaviorSettings.AllowMultiSelection is obsolete

Posted by Joey

Got the following error when doing the DevExpress upgrade to 11.1.7:

1

Fix:
Change to ASPxGridView.SettingsBehavior.AllowSelectByRowClick… Continue reading

18Aug/110

The type or namespace name ‘DefaultBoolean’ does not exist in the namespace ‘DevExpress.Web.ASPxClasses’ (are you missing an assembly reference?)

Posted by Joey

The type or namespace name ‘DefaultBoolean’ does not exist in the namespace ‘DevExpress.Web.ASPxClasses’ (are you missing an assembly reference?)

Got the following error when upgrading to DevExpress v11.1.6 – to fix this simply replace your old code with the below.

1

1… Continue reading

12Aug/111

A primary key field specified via the KeyFieldName property is not found in the underlying data source

Posted by Joey

A primary key field specified via the KeyFieldName property is not found in the underlying data source. Make sure the field name is spelled correctly. Pay attention to the character case.

This generally happens when you have a ASPxGridView.
This means that the data being bound to the gridview isn’t being set correctly. Most cases you’ll be binding it at around Page_Load() try moving it… Continue reading

10May/110

ASPxGridView – The target x for teh callback could not be found or did not implement ICallbackEventHandler

Posted by Joey

Okay, so this error came up the other day as a javascript popup. I was trying to do a gridview within a gridview and give it an editform. So my problem was the event handlers it was listening for, such as OnRowUpdating… etc.
So check you’re code to see if you’re missing any event handlers you haven’t declared. I commonly made this mistake of not deleting old event handlers… Continue reading