Hi
I have a problem.
I have datagrid1 filled on form load. When i click on a line i fill datagrid2.
Inicially i had the last column of the SelectCommamd position 16 the field Garantia from table Propostas.
I added the field ObsCom2 to table Propostas and i replaced Garantia with ObsCom2 on position 16 of the SelectCommand.
The 1st time i fill datagrid2 i get the following error: Datagridcolumnstyle of Garantia cannot be used because is not associated with a Property or Column in the DataSource, and the field ObsCom2 is not displayed.
The 2nd time i fill datagrid2 there's no errors and ObsCom2 is displayed at position 16!?
Any suggestions?
Thanks in advance.
Kind Regards
Jorge




Reply With Quote