DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: datagrid - invalid row number

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    datagrid - invalid row number

    [Originally posted by mcm]

    my datagrid is linked up to an adodc which selects the fields from a table called OrderDetail via a SQL statement (ie select Code, Desc, Quantity, Price from OrderDetail).However, when i try to ref a cell using the following code, it throws up an error:

    DataGrid1.Row = (0)
    DataGrid1.Col = (0)
    DataGrid1.Text = txtCode.Text

    the error msg is "run time error:6148 invalid row number"
    Why is this? Thank you!

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:datagrid - invalid row number

    [Originally posted by Rabab]

    hi
    may u explain clearly ur problem in order to help u plz

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:datagrid - invalid row number

    [Originally posted by Mikekay2]

    This normally happens when you try to access a blank area of the grid control. Try to ensure you only refererence an area containing data.

  4. #4
    Join Date
    Aug 2004
    Posts
    43,023

    Re:datagrid - invalid row number

    [Originally posted by Tariq Ali Shaikh]

    As far as i get it, you are no retieveing all columns (particularly PK) from the table. so datata grid is not abole to update data.
    if send me the code i can examine it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center