Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
5621 | Jul 10,2003 05:26 PM UTC | Jul 11,2003 05:56 AM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
grid.BeginUpdate();
grid.SuspendChangeEvents();
string s = grid[1, comboCol].Text;
grid[1, comboCol].Text = "Some representative value";
grid.Model.Cols.ResizeToFit(myRange, myOptions);
grid[1, comboCol].Text = s;
grid.ResumeChangeEvent();
grid.EndUpdate();
grid.Refresh();
b) Do you have empty cells? If so, the default sizing behavior is to size empty cells to fit the string "Wg;". If you want empty cells sized to some other string, then set this static (Shared in VB) property of GridCellModelBase.
GridCellModelBase.MeasureEmptyCellString = "a";
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.