Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid : Automatically Resizing Cells

Status
Not open for further replies.

RTDesi

MIS
Apr 17, 2001
24
US
Is there a way to resize cells in a Datagrid on the fly based on how much information is in each field in the database? Basically, I want the words to wrap if they exceed n amount of characters so there is no scrolling w/in the cell. (ie all text is visibe at all times)

Any help on this will be greatly appreciated. Thanks in advance.
 
U can set the Datagrid to rezises columns but I don't understand if ur question is about to resize a specific cell
is it?
About the wrap there'is a method call OnEdit or OnEditing something like that check the size by urself
 
Basically what I'm trying to do is get the cells to automatically size themselves to fit all the text in a certain record. For example, in one record, a certain field will have a lot of text, but in another record, the same field will have not so much text. So I want the cell that has a lot of text to automatically resize the height so that all the text can be seen. Can this be done?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top