Using MSFlexGrid and CRecordset
-
Hi, I am trying to populate the MsFlexGrid control by using the SetDataSource property of the MSFlexGrid COntrol.. but I am getting the "Type Mismatch" error. can anyone tell me how to use MSFlexGrid and CRecordset together in an app. Regards, Sylvester12
-
Hi, I am trying to populate the MsFlexGrid control by using the SetDataSource property of the MSFlexGrid COntrol.. but I am getting the "Type Mismatch" error. can anyone tell me how to use MSFlexGrid and CRecordset together in an app. Regards, Sylvester12
Sylvester12 wrote: ...but I am getting the "Type Mismatch" error. can anyone tell me how to use MSFlexGrid and CRecordset together in an app. Not without seeing a relevant code snippet.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
Sylvester12 wrote: ...but I am getting the "Type Mismatch" error. can anyone tell me how to use MSFlexGrid and CRecordset together in an app. Not without seeing a relevant code snippet.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Hi, Here is the piece of code thats cauing the error: m_DataSource is an object of CRecordset which contains records from a database table. m_Grid.SetDataSource(NULL); m_Grid.SetDataSource( (LPDISPATCH) m_DataSource); m_Grid.Refresh(); UpdateData(FALSE);
-
Hi, Here is the piece of code thats cauing the error: m_DataSource is an object of CRecordset which contains records from a database table. m_Grid.SetDataSource(NULL); m_Grid.SetDataSource( (LPDISPATCH) m_DataSource); m_Grid.Refresh(); UpdateData(FALSE);
Ok, so which of these four statements causes the error? I've never used the
MSFlexGrid
object but that first statement seems unnecessary. TheUpdateData()
call is suspect.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow