Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help for developing search engine .net Pin
originSH4-Jul-07 22:39
originSH4-Jul-07 22:39 
AnswerRe: Help for developing search engine .net Pin
originSH4-Jul-07 22:38
originSH4-Jul-07 22:38 
GeneralRe: Help for developing search engine .net Pin
ganti.r5-Jul-07 0:27
ganti.r5-Jul-07 0:27 
AnswerRe: Help for developing search engine .net Pin
NormDroid4-Oct-07 2:24
professionalNormDroid4-Oct-07 2:24 
QuestionHow to use the logging application block in Enterprise Library 3.0 , to log into a flat file Pin
rameshbhojan4-Jul-07 20:57
rameshbhojan4-Jul-07 20:57 
AnswerRe: How to use the logging application block in Enterprise Library 3.0 , to log into a flat file Pin
ganti.r5-Jul-07 0:49
ganti.r5-Jul-07 0:49 
QuestionHow to upload & Display Image in Desktop application Pin
mr_shoaib4-Jul-07 20:56
mr_shoaib4-Jul-07 20:56 
Question[Solved] Is it possible to force columntype in the datagridview, for a given object property, when using databinding? [modified] Pin
Larantz4-Jul-07 20:44
Larantz4-Jul-07 20:44 
Hi guys.

I'm currently working on a datagridview which is bound up to a bindinglist containing a custom display class. The grid already contains ImageColumns for displaying the Icon properties which works properly, only that sorting on them isn't quite what we expected.

The previous programmer implemented a sortalgorithm where sorting on an DataGridViewImageColumn, for Icon type properties, would result in actually using another TextboxColumn containing numeric values for the sort part. But this isn't generic enough as all ImageColumns are sorted for the same numeric value...

So I thought I'd replace the Icon properties for the value objects with IconWrappers containing an icon and a sortable value, and make custom IconWrapperCell and IconWrapperColumn types inhereting from DataGridViewImageColumn and DataGridViewImageCell, and insert these into the DataGridView for the columns that the bindinglist create for the IconWrapper properties.

This seems to be close but no sigar. The bindinglist fails to insert the value into the new columns even though the columnname is identical. OnPaint method for the IconWrapperCell keeps trying to paint with value = null, and if I force the value to be an icon, that icon isn't drawn either.

Has anybody tried anything like this?
I'd really appreciate some feedback if anyone knows anything about replacing/forcing columnstypes for bindinlist created columns.

-- modified at 4:51 Thursday 5th July, 2007

Found a workaround to my problem.
Didn't solve the jigsaw for replacing bindinglist created columns,
but replaced the Icon properties for the value objects with Image type and
used the Image.Tag property for storing sortable values.

-Larantz-

for those about to code, we salute you
http://www.tellus-software.com

Questionwant to make an uninstaller Pin
devesh_code4-Jul-07 20:18
devesh_code4-Jul-07 20:18 
AnswerRe: want to make an uninstaller Pin
Vikram A Punathambekar4-Jul-07 21:00
Vikram A Punathambekar4-Jul-07 21:00 
GeneralRe: want to make an uninstaller Pin
devesh_code4-Jul-07 21:13
devesh_code4-Jul-07 21:13 
GeneralRe: want to make an uninstaller Pin
Vikram A Punathambekar4-Jul-07 21:35
Vikram A Punathambekar4-Jul-07 21:35 
GeneralRe: want to make an uninstaller Pin
devesh_code4-Jul-07 21:56
devesh_code4-Jul-07 21:56 
GeneralRe: want to make an uninstaller Pin
Iftekhar Naim5-Jul-07 8:52
Iftekhar Naim5-Jul-07 8:52 
GeneralRe: want to make an uninstaller Pin
devesh_code5-Jul-07 19:24
devesh_code5-Jul-07 19:24 
GeneralRe: want to make an uninstaller Pin
Iftekhar Naim5-Jul-07 19:39
Iftekhar Naim5-Jul-07 19:39 
GeneralRe: want to make an uninstaller Pin
devesh_code5-Jul-07 19:49
devesh_code5-Jul-07 19:49 
GeneralRe: want to make an uninstaller Pin
Iftekhar Naim5-Jul-07 22:31
Iftekhar Naim5-Jul-07 22:31 
Questionupdate datatable with adapter.update() Pin
hamid_m4-Jul-07 20:10
hamid_m4-Jul-07 20:10 
AnswerRe: update datatable with adapter.update() Pin
RepliCrux4-Jul-07 20:48
RepliCrux4-Jul-07 20:48 
GeneralRe: update datatable with adapter.update() Pin
hamid_m4-Jul-07 21:02
hamid_m4-Jul-07 21:02 
Questionproblm wth tab control Pin
accessred4-Jul-07 19:21
accessred4-Jul-07 19:21 
AnswerRe: problm wth tab control Pin
Martin#4-Jul-07 20:02
Martin#4-Jul-07 20:02 
GeneralRe: problm wth tab control Pin
accessred4-Jul-07 21:54
accessred4-Jul-07 21:54 
GeneralRe: problm wth tab control Pin
Martin#4-Jul-07 22:04
Martin#4-Jul-07 22:04 

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.