Click here to Skip to main content
15,851,711 members
Home / Discussions / C#
   

C#

 
GeneralFeed CheckedListBox with data from XML Pin
dophka4-Jan-04 7:37
dophka4-Jan-04 7:37 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 9:34
protectorHeath Stewart4-Jan-04 9:34 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 9:46
dophka4-Jan-04 9:46 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 9:52
protectorHeath Stewart4-Jan-04 9:52 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 10:07
dophka4-Jan-04 10:07 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 10:11
protectorHeath Stewart4-Jan-04 10:11 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 11:25
dophka4-Jan-04 11:25 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart5-Jan-04 7:05
protectorHeath Stewart5-Jan-04 7:05 
dophka wrote:
(something I didn't yet find in the properties)

Don't be a drag-n-drop programmer - read the documentation for the DataGrid You'll find a lot more is possible than what the properties provide (some properties are browsable in the designer, and then there's all the methods that you won't see...)

dophka wrote:
when the grid comes out it has four columns as expected but how do I make them fill all the space horizontally?

This is perhaps the biggest problem with the DataGrid. There's really nothing you can do but resize the column programmatically. I'm sure I've seen a couple articles on this here on the CP site. Just try a search.

dophka wrote:
when the text in a column does not fit the grid window horizontally, is there a way to make it put it into a new line? like excel does it?

First of all, you must understand that Excel is a spreadsheet control - not a grid (just so you don't get any other crazy ieas in your head! Smile | :) )

Second, you can create a custom DataGridColumnStyle class that allows you to edit text in multiple lines, but the display of the values is dependent on the DataGrid. To my knowledge, there is no way to get the text to display in multiple lines when not in edit mode.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
Generalhelp me in finding objective and multiple choice questions Pin
imran_rafique4-Jan-04 5:29
imran_rafique4-Jan-04 5:29 
GeneralRe: help me in finding objective and multiple choice questions Pin
Heath Stewart4-Jan-04 9:23
protectorHeath Stewart4-Jan-04 9:23 
GeneralSending mail using SMTP Pin
gr8tushar4-Jan-04 2:47
gr8tushar4-Jan-04 2:47 
GeneralRe: Sending mail using SMTP Pin
Mike Ellison4-Jan-04 4:11
Mike Ellison4-Jan-04 4:11 
GeneralRe: Sending mail using SMTP Pin
gr8tushar4-Jan-04 4:43
gr8tushar4-Jan-04 4:43 
GeneralRe: Sending mail using SMTP Pin
Broken God4-Jan-04 6:59
Broken God4-Jan-04 6:59 
GeneralRe: Sending mail using SMTP Pin
Heath Stewart4-Jan-04 9:18
protectorHeath Stewart4-Jan-04 9:18 
GeneralRe: Sending mail using SMTP Pin
Mazdak4-Jan-04 6:08
Mazdak4-Jan-04 6:08 
GeneralRe: Sending mail using SMTP Pin
Heath Stewart4-Jan-04 9:21
protectorHeath Stewart4-Jan-04 9:21 
GeneralPanel + Keypress Pin
Heroz4-Jan-04 1:26
Heroz4-Jan-04 1:26 
GeneralRe: Panel + Keypress Pin
Mike Ellison4-Jan-04 4:14
Mike Ellison4-Jan-04 4:14 
GeneralRe: Panel + Keypress Pin
Heroz4-Jan-04 6:29
Heroz4-Jan-04 6:29 
GeneralRe: Panel + Keypress Pin
Mike Ellison4-Jan-04 7:27
Mike Ellison4-Jan-04 7:27 
GeneralRe: Panel + Keypress Pin
Heroz4-Jan-04 9:04
Heroz4-Jan-04 9:04 
GeneralStrange exception in a strange thread Pin
Broken God4-Jan-04 1:23
Broken God4-Jan-04 1:23 
GeneralRe: Strange exception in a strange thread Pin
Heath Stewart4-Jan-04 9:16
protectorHeath Stewart4-Jan-04 9:16 
GeneralRe: Strange exception in a strange thread Pin
Broken God4-Jan-04 10:58
Broken God4-Jan-04 10:58 

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.