Re... hello Med. Maybe you may try a other way.
It seems to me that the kind of column in a BDStringgrid is assigned when you connect the fields to the tmsesqlquery1-field. So if you want to know the kind of column in a BDStringgrid, this should work: var str : string; datatype: tfieldtype; ... str := odbgrid.datacols.cols[iCol]].datafield; // to get the name of the field. for x:= 0 to tmsesqlquery1.FieldDefs.count -1 do // look in query the same name begin if str = tmsesqlquery1.FieldDefs[x].name then datatype := tmsesqlquery1.FieldDefs[x].DataType; // Yep, you get the datatype end; Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/ _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk