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  |  

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


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

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!
Click here to go to dev.live.com for Windows Live developer resources
 


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.

 


$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com
ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl

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