Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  DataGrid Problems help me
Previous Previous
 
Next Next
New Post 4/28/2007 5:34 AM
User is offline hassan ali
110 posts
www.datacircle.net/
9th Ranked


DataGrid Problems help me 

Hi all,

I developed my costum module that named Companies I listed companies data in DataGrid control and it listed successfully as I want but I have to problems please help me :

1- I want to invisible ComID in my datagrid so I wrote this code before binding datagrid

DataGrid1.Columns(0).Visible =

False

DataGrid1.DataBind()

BUT

Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at System.Web.UI.WebControls.DataGridColumnCollection.get_Item(Int32 index) at DataCircle.DNN.Modules.Companies.Companies.BindData() in C:\DNN3\DesktopModules\Companies\Companies.ascx.vb:line 204

2- Editing in datagrid I used this code

<Columns>
  <asp:TemplateColumn>
   <ItemTemplate>
    <asp:HyperLink id="editLink" NavigateUrl='<%# EditURL("ComID",DataBinder.Eval(Container.DataItem,"ComID")) %>' Visible="<%# IsEditable %>" runat="server" >
    <asp:Image id="editLinkImage" ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%# IsEditable %>" Runat="server" />
    </asp:hyperlink>
   </ItemTemplate>
  </asp:TemplateColumn>
</Columns>

BUT

DataBinder.Eval: 'System.Data.Common.DbDataRecord' does not contain a property with the name ComID.

However ComID viewed in datagrid

I really Can't solve these 2 problems, please help me


Regards, Hassan Ali
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  DataGrid Problems help me
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com
R2i - Delivering Serious DNN Services & Solutions
Award Winning Design, Skin construction, Custom Modules and Consulting Services for the Enterprise organization. R2i is the DNN:Map module Project Lead and one of the largest DNN service providers with offices in New York City, Virginia and Baltimore.
www.bi4ce.com
"SalarO" Skinning Graphic Design Branding Services
SalarO develops packaged & custom skins for your DNN at prices you can afford. SalarO is also developing Module development, Hosting, Branding/Logo design as well as Content Transfer Services to complement the core skinning solutions.
www.salaro.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP