Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataControlRowState
Message
From
08/03/2007 08:52:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01201818
Message ID:
01201887
Views:
13
>In the GridView RowDataBound event I am checking for the Row.RowState value.
>As far as I know those are the available DataControlRowStates:
>
>Normal = 0,
>Alternate = 1,
>Selected = 2,
>Edit = 4,
>Insert = 8
>
>When I step into the code I noticed that in some cases my Row.RowState = 7.
>
>Does anyone knows what 7 is ?
>Thank you,
>Daniel

It's 4+2+1 = 7 IOW it's a bit flag stating that you're on an alternate row, selected that row and editing (bits 1,2,3 are set).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform