473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Datagrid Problem- column not found

24
Dear All,

i m using the Datagrid , in which two columns data i called from database & two columns data is user going to write.
but after writing data when i move to next column it show the error "Column Not Found |1"

the data in which user is going to write data the index no is 2 & 3.

Please help me.


Regards
Lucky13
Oct 23 '07 #1
2 2236
Don't Bind the data grid, Get the data from the database and programatically stuff the Two columns of data into the grid using a loop. Use Msflexgrid rather
Oct 24 '07 #2
lucky13
24
Don't Bind the data grid, Get the data from the database and programatically stuff the Two columns of data into the grid using a loop. Use Msflexgrid rather
Hello,

i tired by using loop with datagrid but data is not displaying in datagrid
Expand|Select|Wrap|Line Numbers
  1. Do While Not rsdetails.EOF
  2.            With rsdetails
  3.  
  4. ''----------------- if this portion is using the loop is moving but Data is not displaying in the Grid ---------------
  5.  
  6. '                    dgpaydetails.DataBindings(0) = rsdetails!ADA_No
  7. '                    dgpaydetails.DataBindings(1) = rsdetails!ToolBreak
  8. '                    dgpaydetails.DataBindings(2) = rsdetails!TicketBreak
  9.  
  10. '---------------------------------------------------------------------------------------------------------------------
  11.  
  12. '----------------- if i m using this then i am geeting Error "Rowset Not Available"----------
  13. '                   dgpaydetails.Columns(0) = rsdetails!ADA_No
  14. '                   dgpaydetails.Columns(1) = rsdetails!ToolBreak
  15. '                   dgpaydetails.Columns(2) = rsdetails!TicketBreak
  16. '----------------------------------------------------------------------------------------------
  17.  
  18.                     MSHFlexGrid1.ColData(0) = !ADA_No
  19.                     MSHFlexGrid1.ColData(1) = !ToolBreak
  20.                     MSHFlexGrid1.ColData(2) = !TicketBreak
  21.  
  22.  
  23.                 rsdetails.MoveNext
  24.            End With
  25.         Loop
  26.  
  27.             End If
  28.  
  29.      rsdetails.Close
  30.  
\

please help me.....
Nov 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Emerson | last post by:
The following assumes a System.Windows.Forms.DataGrid with a System.Data.DataTable set as the DataSource. I'm programming in C# Here's my scenario I click in a cell on a DataGrid. I enter some...
1
by: Joe Bloggs | last post by:
I am trying display the contents of a table in a web page, select certain rows from that table and then display the fields that I have selected (now table columns) as text in a Label object....
5
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order...
0
by: mgenti | last post by:
I am experiencing a problem when I add a row to a DataTable that is used on a DataGrid in my Windows Form application. When I add a new row I no longer get a response from my form. I see the row...
3
by: Carolyn Vo | last post by:
I have a datagrid in my web control class that I am trying to get the current rows displayed for. I have enabled paging on the datagrid so if the user is currently on page 3 of 8, and if I have...
7
by: Matthew Wieder | last post by:
Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the grid appears as a large black rectangle, which is...
1
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
5
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
4
by: Mark Waser | last post by:
I've discovered a very odd bug when attempting to put a dropdown list in a datagrid. In the page PreRender step, the selected index of the datagrid is successfully set during databinding. Yet,...
4
by: Jan Nielsen | last post by:
Hi all I'm a former Access developer who would like to implement a many-to-many relation in about the same way you do in Access: With a subform and a combo box. Is it possible to use a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.