In UltraGrid we were able to use the property "currentRow.Band.Columns(k).HasValueList" but i don't see an equivalent for webdatagrid.
If you want to use Bands, you should use WebHierarchicalDataGrid. You can get the columns of a band like this:
protected void whdg_InitializeBand(object sender, BandEventArgs e)
Please let us know if you need further assistance.
I am not looking at WebHierarchicalDataGrid but normal webdatagrid. Can i just check if GridRecorditem.Value!=Null to mimic the old HasValueList functionality?
The HasValueList returned whether there was a ValueList associated with the column. The check you are asking about would not check that.
With the WebDataGrid a drop down is added by associating a DropDownProvider with the column as seen in the DropDown Editors sample. There are two steps to this in that you have to both add the DropDownProvider to the WebDataGrid EditorProviders collection and then you need to specify the ColumnSettings on the CellEditing behavior to associate the editor provider with the column. As such to determine if a cell has a drop down dynamically you would need to determine if there are ColumnSettings specified for the column in question and if those settings and if there are, check if the editor provider specified is a DropDownProvider.
I recommend reviewing how the HasValueList was used in the past to see if you really need to determine this dynamically. Maybe there is a better approach that you can take with the WebDataGrid and editor providers that would be easier to maintain going forward. In theory you shouldn't need this method as you need to specify what columns have a DropDownProvider associated with them so you should already know this without needing to determine this dynamically from the grid.
Let me know if you have any questions with this matter.