Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
6139 | Aug 1,2003 02:08 PM UTC | Aug 2,2003 07:40 PM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_DrawCell(object sender, GridDrawCellEventArgs e) { if(e.ColIndex == 2 && e.RowIndex > 0) { SizeF sz = e.Graphics.MeasureString(e.Style.Text, e.Style.GdipFont); if(sz.Width > e.Bounds.Width - e.Style.TextMargins.Left - e.Style.TextMargins.Right) { e.Style.Text = new string('*', e.Style.Text.Length); } } }
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.