Do you want to check if you have enough database level permission to delete
a record?...
If you only want to check if your DataTable has a DeleteCommand... you can
check if for "nothing"... like:
myDeleteButton.Enable = Not myDataTable.DeleteCommand is Nothing
Hope this helps...
Daniel.
> VS 2005
>
[quoted text clipped - 32 lines]
>
> Rick
Rick - 17 Apr 2007 17:37 GMT
Yes, thats what I wanted. Thanks Daniel
> Do you want to check if you have enough database level permission to
> delete a record?...
[quoted text clipped - 44 lines]
>>
>> Rick
Rick - 17 Apr 2007 22:52 GMT
I spoke too quickly before.
DeleteCommand is a field of DataAdapter not DateTable so it has no
application here unless I am missing something.
AFAIK a the dataadapter on my form has no backwards relationship with the
datatable it originally came from so I can't cast from here either.
Anyone else?
Rick
> Do you want to check if you have enough database level permission to
> delete a record?...
[quoted text clipped - 44 lines]
>>
>> Rick