Click here to Skip to main content
11,638,881 members (69,148 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB6
I have a datagrid with 4 columns(A B C D) and they are added data, and then I add a new column (F)into this datagrid(A B F C D) and column F is set type is button( Datagrid1.columns(2).button=true) to when click on button of column F a listbox appeared to choose data and update this data for column F.

The problem in here is when I choose data from listbox to update, application it shows an error " run-time error 6147: column not found, |1 "

I think column index of datagrid1 is changed because when I use " Datagrid1.columns(3).button=true", the type of columns C doesn't change to button that the type of column D become button.

I don't know why.
Would you help me to resolve this problem to update data for column F?
Posted 20-Dec-10 21:32pm
ngthtra1.4K
Edited 20-Dec-10 21:34pm
JF201553.9K
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please Provide few more details Such as few line of sample code where the error is occurring. Also mention whether the Column are Bound to any data source or not if so then whether the data field property is properly set or not.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 9,061
1 Sergey Alexandrovich Kryukov 8,773
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,494
4 F-ES Sitecore 2,438


Advertise | Privacy | Mobile
Web04 | 2.8.150728.1 | Last Updated 2 Jan 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100