Click here to Skip to main content
15,908,455 members
Home / Discussions / C#
   

C#

 
GeneralLZW compression using C# Pin
Bettie1-Jun-04 9:08
Bettie1-Jun-04 9:08 
GeneralRe: LZW compression using C# Pin
Heath Stewart1-Jun-04 9:11
protectorHeath Stewart1-Jun-04 9:11 
GeneralRe: LZW compression using C# Pin
flipdoubt1-Jun-04 10:50
flipdoubt1-Jun-04 10:50 
GeneralRe: LZW compression using C# Pin
Heath Stewart1-Jun-04 11:07
protectorHeath Stewart1-Jun-04 11:07 
GeneralRe: LZW compression using C# Pin
flipdoubt1-Jun-04 11:09
flipdoubt1-Jun-04 11:09 
GeneralRe: LZW compression using C# Pin
Heath Stewart1-Jun-04 11:13
protectorHeath Stewart1-Jun-04 11:13 
GeneralRe: LZW compression using C# Pin
flipdoubt1-Jun-04 11:31
flipdoubt1-Jun-04 11:31 
GeneralIFormatProvider on DataGridTextColumn Pin
Anfernius1-Jun-04 8:46
Anfernius1-Jun-04 8:46 
Greetings,

I'm having some trouble while assigning a FormatProvider on a Datagrid column, namely a DataGridTextBoxColumn. I've defined a class that implements a IFormatProvider and a ICustomFormatter, that I intend to use on converting an integer to something like a time interval (01:33 21s).

Though the formatter has been created and linked to the FormatInfo of the dataGridTextBoxColumn, the data doesnt get converted. This is how I bind the formatter to the datacolumn:

<br />
DataGridTextColumn dgtc = grid.TableStyles[0].GridColumnStyles[4];<br />
TicksToTimeFormatInfo formatInfo = new TicksToTimeFormatInfo();<br />
dgtc.FormatInfo = formatInfo;<br />
dgtc.Format = "{0:tt}";<br />


The GetFormat method of the TicksToTimeFormatInfo class is called every time the grid draws a cell, but with NumberFormatInfo as the value's type. Even if i forge the function so that it always returns it's instance the Format implementation of the ICustomFormatter never gets called, I belive the NumberFormatInfo's one is called.

Does anyone knows how to solve this?

Thanks for your attention,

Anfernius
GeneralRe: IFormatProvider on DataGridTextColumn Pin
Heath Stewart1-Jun-04 8:53
protectorHeath Stewart1-Jun-04 8:53 
GeneralRetreiving Application Icon Pin
ThisBytes51-Jun-04 8:43
ThisBytes51-Jun-04 8:43 
GeneralRe: Retreiving Application Icon Pin
Heath Stewart1-Jun-04 9:09
protectorHeath Stewart1-Jun-04 9:09 
GeneralRe: Retreiving Application Icon Pin
ThisBytes51-Jun-04 9:33
ThisBytes51-Jun-04 9:33 
GeneralRe: Retreiving Application Icon Pin
Heath Stewart1-Jun-04 9:36
protectorHeath Stewart1-Jun-04 9:36 
GeneralCustom Control Design Time Problem Pin
Z.D.Biles1-Jun-04 8:40
Z.D.Biles1-Jun-04 8:40 
GeneralRe: Custom Control Design Time Problem Pin
Heath Stewart1-Jun-04 8:59
protectorHeath Stewart1-Jun-04 8:59 
GeneralRe: Custom Control Design Time Problem Pin
Z.D.Biles1-Jun-04 9:46
Z.D.Biles1-Jun-04 9:46 
Generalsystem language Pin
orcun colak1-Jun-04 7:45
orcun colak1-Jun-04 7:45 
GeneralRe: system language Pin
Heath Stewart1-Jun-04 8:55
protectorHeath Stewart1-Jun-04 8:55 
QuestionDataSet Pointer? Pin
Adam °Wimsatt1-Jun-04 7:27
Adam °Wimsatt1-Jun-04 7:27 
AnswerRe: DataSet Pointer? Pin
Heath Stewart1-Jun-04 8:51
protectorHeath Stewart1-Jun-04 8:51 
AnswerRe: DataSet Pointer? Pin
Anfernius1-Jun-04 8:51
Anfernius1-Jun-04 8:51 
AnswerRe: DataSet Pointer? Pin
LongRange.Shooter1-Jun-04 8:59
LongRange.Shooter1-Jun-04 8:59 
GeneralXML Serializing a Color Pin
Joel Holdsworth1-Jun-04 7:26
Joel Holdsworth1-Jun-04 7:26 
GeneralRe: XML Serializing a Color Pin
leppie1-Jun-04 8:32
leppie1-Jun-04 8:32 
GeneralRe: XML Serializing a Color Pin
Joel Holdsworth1-Jun-04 10:38
Joel Holdsworth1-Jun-04 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.