Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to cast Datagridview.selectedRow(0).databounditem in Object Classs as we do in C#

Ex.

Object Objc = DataGridView1.SelectedRows[0].DataBounditem as ClassAbc


Please tell Me how to do this in VB.Net

and also tell me how to cast Object Class in ClassAbc in VB.Net
Posted
Updated 14-Mar-12 1:31am
v3
Comments
Rajeev Jayaram 14-Mar-12 7:31am    
[Edit] - Pre tag added.

1 solution

Take a look at this article Cheat Sheet - Casting in VB.NET and C#[^] to give you examples of casting.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900