I am doing my second project now and I am using database components. So when I run the application and the DBGrid is shown and the data is read in from the MS Acess database, all the fields are too big and you have to scroll horizontally. Is there any way in auto-resizing them accordingly to the text they contain, or can i set their default values to, say, 40 pixels?
It is not required to pass my course, it is just me being trying to make it look good.
It would be very appreciated if someone can not only post a piece of code but also show me where to declare all the variables etc!
Thanks in advance.
PS I heard there is ColWidths property, but it only applies to StringGrid if I am correct...