Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 20-Dec-10 21:34pm
v2

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900