Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property in a form
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
00954513
Message ID:
00954551
Views:
19
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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform