Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property in a form
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
00954513
Message ID:
00954551
Vues:
20
Okay, i don't get it?

Why would i have a public property called
CurrentDataGridHitRow and a private _currentDataGridHitRow

Wouldn't it be easier to use a protected var versus a property.

Maybe my designis bad, and it needs a proteted var versus a property.

I was using the property to hold the DataRow, so i can access it from any where in the winform or pass it as a datarow somewhere else.

Would a Var be better????





>Hi Shawn:
>
>You have a recursive property. Try this:
>
>
>private DataRow _currentDataGridRow
>public DataRow CurrentDataGridHitRow
>{
>	get{return this._currentDataGridRow;}
>	set{this._currentDataGridRow = value;}
>}
>
>
>HTH,
>
>--Paul
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform