Click here to Skip to main content
15,897,334 members
Home / Discussions / C#
   

C#

 
GeneralRe: GET Image Constructor Pin
Judah Gabriel Himango13-Jul-05 9:18
sponsorJudah Gabriel Himango13-Jul-05 9:18 
GeneralRe: GET Image Constructor Pin
Expert Coming13-Jul-05 18:25
Expert Coming13-Jul-05 18:25 
GeneralRe: GET Image Constructor Pin
Judah Gabriel Himango14-Jul-05 5:03
sponsorJudah Gabriel Himango14-Jul-05 5:03 
GeneralText can't be fully displayed on a button Pin
sparks_lu13-Jul-05 8:52
sparks_lu13-Jul-05 8:52 
GeneralCOM+ & .NEt parameters by reference Pin
raforaez13-Jul-05 8:06
raforaez13-Jul-05 8:06 
GeneralRe: COM+ & .NEt parameters by reference Pin
Judah Gabriel Himango13-Jul-05 9:11
sponsorJudah Gabriel Himango13-Jul-05 9:11 
GeneralRe: COM+ & .NEt parameters by reference Pin
raforaez13-Jul-05 9:28
raforaez13-Jul-05 9:28 
GeneralDataGrid: lock row height, paint icons in BoolColumn Pin
SebbaP13-Jul-05 7:30
SebbaP13-Jul-05 7:30 
Hi,

I have two DataGrid related issues that I would like some help to resolve.

1. I need to lock the heights of all rows in my datagrid, and I have not found any way of accomplishing that. As a side note, I have found a way to lock the widths of my columns by hooking onto the ...WidthChanged event and forcing the width to its correct value for each column (is there a better way?).
So, how do I lock row heigths?

2. I have a class that derives from DataGridBoolColumn in which I want to paint icons depending on the values of the cells (true, false, null) by overloading the Paint method and do the drawing myself. I got it working, but not to my satisfaction as it involves too "much" work. What I would like to do is to use the three [True/False/Null]Value properties by assigning to each of them an instance of an Icon, and then use that instance to paint the cell with. I thought I could retrieve the Icon by using the protected method "GetColumnValueAtRow" in the Paint method, but all it returns is DBNull. If I dont alter the three ...Value properties, "GetColumnValueAtRow" returns true, false or null as its supposed to. This would be a nice solution because I don't have to figure out which Icon to paint depending on the value of the cell, since the value of the cell is infact the Icon itself. So, the only difference between my working and non-working solutions is that in the non-working one I alter the Value properties in the constructor of my derived column class. Like this:

this.TrueValue = new Icon( "true_icon.ico" );
...

I should perhaps say that I have bound a DataSet to my grid, and I add the information, which the grid is supposed to visualize, directly in my DataTable.

I can provide source code tomorrow, as the code is on my computer at work.


I hope someone can help me!
Thanks!
GeneralScroll panel from caret Pin
mr_seus13-Jul-05 6:31
mr_seus13-Jul-05 6:31 
GeneralRe: Scroll panel from caret Pin
Judah Gabriel Himango13-Jul-05 9:14
sponsorJudah Gabriel Himango13-Jul-05 9:14 
GeneralRe: Scroll panel from caret Pin
mr_seus13-Jul-05 13:40
mr_seus13-Jul-05 13:40 
QuestionHow to create a shortcut Pin
kevin_smoke13-Jul-05 5:43
kevin_smoke13-Jul-05 5:43 
AnswerRe: How to create a shortcut Pin
Judah Gabriel Himango13-Jul-05 7:46
sponsorJudah Gabriel Himango13-Jul-05 7:46 
GeneralLoggin in C# Pin
rnvrnv13-Jul-05 5:31
rnvrnv13-Jul-05 5:31 
GeneralRe: Loggin in C# Pin
S. Senthil Kumar13-Jul-05 6:31
S. Senthil Kumar13-Jul-05 6:31 
GeneralRe: Loggin in C# Pin
eggie513-Jul-05 6:55
eggie513-Jul-05 6:55 
GeneralRe: Loggin in C# Pin
Steve Maier13-Jul-05 7:18
professionalSteve Maier13-Jul-05 7:18 
GeneralHuge problem with controls Pin
zaboboa13-Jul-05 5:17
zaboboa13-Jul-05 5:17 
GeneralRe: Huge problem with controls Pin
Judah Gabriel Himango13-Jul-05 10:47
sponsorJudah Gabriel Himango13-Jul-05 10:47 
GeneralRe: Huge problem with controls Pin
jdkulkarni14-Jul-05 2:49
jdkulkarni14-Jul-05 2:49 
QuestionHow do I get client input from dynamically created controls that I can use in server-side code??? Pin
jengbrecht13-Jul-05 5:13
jengbrecht13-Jul-05 5:13 
Generalfinding control in datagrid header Pin
livez13-Jul-05 4:52
livez13-Jul-05 4:52 
GeneralRe: finding control in datagrid header Pin
thomasa22-Jul-05 2:06
thomasa22-Jul-05 2:06 
Generaldisable browsing directory Pin
Emily7713-Jul-05 3:54
Emily7713-Jul-05 3:54 
GeneralRe: disable browsing directory Pin
Guffa13-Jul-05 4:43
Guffa13-Jul-05 4:43 

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.