Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting current row in a datatable
Message
From
27/01/2005 12:13:32
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00981229
Message ID:
00981257
Views:
45
Hi, Einar-

>If C# doesn't like what I am casting it to, cast it to something else <s> This seems to work like I wanted it to:
>
>((System.Data.DataRowView) this.myBindingManager.Current).Delete();
>
Or, one could check GetType, or even the help ;-).

"The Current object contains the value of the current item in the data source. To use the value of the current item, you must cast the item to the Type of the object contained by the DataSource. For example, a DataTable contains DataRowView objects. To determine the type of the current object, use the GetType and ToString methods."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform