Welcome Guest Search | Active Topics | Sign In | Register

Grid Object Reference Not Set To An Instance of an object in build V2007.2.51 Options
Steve Peters
Posted: Thursday, May 8, 2008 3:33:40 PM
Rank: Member
Groups: Member

Joined: 3/3/2008
Posts: 17
I have a Grid in VWD 2008 with some custom settings. Now when I go into Edit Grid and select the _Default Item Style Set -> AlternatingItemStyle and try to set Backcolor I get the error: Object Reference Not Set To An Instance of an object. I have included the grids html if that helps.

GRID HTML:

<eo:Grid ID="GridInventory" runat="server" BorderColor="Brown"
BorderStyle="Groove" BorderWidth="3px"
ColumnHeaderHeight="26" FixedColumnCount="4"
Font-Bold="False" Font-Italic="False" Font-Names="Verdana"
Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False"
Font-Underline="False" GridLineColor="Black" GridLines="Both" Height="555px"
ItemHeight="19" PageSize="25" Width="483px"
ClientSideOnItemSelected="GetGridItem" PagerLabelTemplate=""
CssClass="GridStyle1"
ClientSideOnCellSelected="GetGridItem" KeyField="InCode"
RunningMode="Callback" >
<ItemStyles>
<eo:GridItemStyleSet>
<ItemStyle CssText="background-color: white" />
<ItemHoverStyle CssText="background-color:#f7778a;background-repeat:repeat-x;" />
<SelectedStyle CssText="background-color:#d54461;background-repeat:repeat-x;" />
<CellStyle CssText="padding-left:8px;padding-top:2px; color:#336699;" />
</eo:GridItemStyleSet>
</ItemStyles>
<ColumnTemplates>
<eo:TextBoxColumn>
<TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
</eo:TextBoxColumn>
<eo:StaticColumn>
</eo:StaticColumn>
<eo:TextBoxColumn>
</eo:TextBoxColumn>
<eo:ButtonColumn>
</eo:ButtonColumn>
</ColumnTemplates>
<FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
<ColumnHeaderTextStyle CssText="background-color:brown;color:brown;" />
<Columns>
<eo:RowNumberColumn DataField="InCode" HeaderText="Item" Name="Item" Width="40">
<CellStyle CssText="color:black;padding-left:10px;text-align:center;" />
</eo:RowNumberColumn>
<eo:StaticColumn DataField="InDescription" HeaderText="Description" Name="InDescription"
Text="" Width="275">
<CellStyle CssText="color:black;padding-left:5px;" />
</eo:StaticColumn>
<eo:StaticColumn DataField="InRentPrice" DataFormat="{0:C}" HeaderText="Cost" Name="Cost"
Text="" Width="75">
<CellStyle CssText="color:black;font-size:X-Small;padding-right:10px;text-align:right;" />
</eo:StaticColumn>
<eo:ButtonColumn ButtonText="Add" ButtonType="PushButton" DataField="" HeaderText="Add"
MinWidth="10" Name="btnPushButtonAdd" Width="60">
<CellStyle CssText="color:black;font-size:XX-Small;padding-left:1px;text-align:center;" />
</eo:ButtonColumn>
</Columns>
<ColumnHeaderStyle CssText="background-color:brown;border-bottom-color:brown;border-bottom-style:solid;border-left-color:brown;border-left-style:solid;border-right-color:brown;border-right-style:solid;border-top-color:brown;border-top-style:solid;color:white;font-weight:bold;padding-left:8px;padding-top:2px;" />
<ColumnHeaderHoverStyle CssText="background-color:brown;border-bottom-color:brown;border-bottom-style:solid;border-left-color:brown;border-left-style:solid;border-right-color:brown;border-right-style:solid;border-top-color:brown;border-top-style:solid;color:white;font-weight:bold;padding-left:8px;padding-top:2px;" /><ContentPaneStyle CssText="" />
</eo:Grid>
eo_support
Posted: Thursday, May 8, 2008 7:26:57 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Steve,

We have confirmed that this is a bug. We will fix it as soon as possible.

Thanks for letting us know!
Steve Peters
Posted: Friday, May 9, 2008 6:43:26 AM
Rank: Member
Groups: Member

Joined: 3/3/2008
Posts: 17
What would the syntax be to set this parameter in HTML?
eo_support
Posted: Friday, May 9, 2008 6:53:06 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You would just expand the property and set the BackColor there; or manually modify the CssText property there.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.