Update datatable

i want to know that if i can do the next thing:
if i choose a float type of interface in the datatable i made ,the datatable will appear that kind of interface,but if i choose a string one ,then it will appear a string type of interface, so what is a changing datatable.
if i can do that ,it will be very convenience to me to finish my datatable.
but the problem is i dont know whether i can do this or not,and how to do this