Re: Dynamically formatting a row in a Data Grid
- From: "Jazper Manto" <ejazper@xxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 16:10:45 +0200
hi
you have to do your own DataGridTextBoxColumn and override the Paint Method.
there is currently no other way to do that in .net 1.1 with the MS Data
Grid. but doing at your own needs about 10 codelines.. so nothing complex.
there are good articles about formating on codeproject:
http://www.codeproject.com/csharp/PracticalGuideDataGrids4.asp
http://www.codeproject.com/csharp/Apply_DataGridTableStyle.asp
there are several examples on the net:
http://groups.google.ch/group/microsoft.public.dotnet.framework.windowsforms.controls/browse_thread/thread/eb02d5da559d428c/b69052d31948b624?lnk=st&q=color+DataGridTextBoxColumn&rnum=2&hl=de#b69052d31948b624
or
http://groups.google.ch/group/microsoft.public.dotnet.languages.vb/browse_thread/thread/f61d69474b1643b4/4ff50628a6dba523?lnk=st&q=color+DataGridTextBoxColumn&rnum=7&hl=de#4ff50628a6dba523
good luck
jazper
.
- Prev by Date: Re: Debugging
- Next by Date: DotNet dll loading compatability
- Previous by thread: SAP CONNECTOR
- Next by thread: DotNet dll loading compatability
- Index(es):
Relevant Pages
|