Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
AnswerRe: Access to My Documents folder? Pin
Nader Elshehabi7-Sep-06 8:30
Nader Elshehabi7-Sep-06 8:30 
GeneralRe: Access to My Documents folder? Pin
HahnTech7-Sep-06 13:27
HahnTech7-Sep-06 13:27 
GeneralRe: Access to My Documents folder? Pin
Nader Elshehabi7-Sep-06 15:04
Nader Elshehabi7-Sep-06 15:04 
QuestionDetermining a generic type at runtime Pin
Ista7-Sep-06 8:06
Ista7-Sep-06 8:06 
AnswerRe: Determining a generic type at runtime Pin
LongRange.Shooter7-Sep-06 8:16
LongRange.Shooter7-Sep-06 8:16 
GeneralRe: Determining a generic type at runtime Pin
Ista7-Sep-06 8:20
Ista7-Sep-06 8:20 
QuestionDatabound Variable : IS IT POSSIBLE >? Pin
Nadia Monalisa7-Sep-06 6:46
Nadia Monalisa7-Sep-06 6:46 
AnswerRe: Databound Variable : IS IT POSSIBLE >? Pin
LongRange.Shooter7-Sep-06 8:05
LongRange.Shooter7-Sep-06 8:05 
You can do the same thing by creating a datatable, add a column named something with a typeof(string) and your data becomes bound to a "datasource".
For example: I'm adding a datasource for my checkboxes so that sorts keep the state of the checkbox.

....
batchSelectColumn = new DataGridViewCheckBoxColumn();
        batchSelectColumn.Width = 30;
        batchSelectColumn.DisplayIndex = 0;
        batchSelectColumn.Name = "BatchSelectColumn";
        batchSelectColumn.ThreeState = false;
        batchSelectColumn.DataPropertyName = "SelectColumn"; // binds to my datasource
        batchSelectColumn.HeaderText = string.Empty;
        viewer.BatchGrid.Columns.Add( batchSelectColumn );
 DataTable BATCHHEADER = new DataTable();
 BATCHHEADER.Columns.Add( "SelectColumn", typeof(bool) );

GeneralRe: Databound Variable : IS IT POSSIBLE >? Pin
Nadia Monalisa7-Sep-06 9:36
Nadia Monalisa7-Sep-06 9:36 
QuestionEnding a foreach loop prematurely Pin
Vodstok7-Sep-06 5:35
Vodstok7-Sep-06 5:35 
AnswerRe: Ending a foreach loop prematurely Pin
Colin Angus Mackay7-Sep-06 5:39
Colin Angus Mackay7-Sep-06 5:39 
AnswerRe: Ending a foreach loop prematurely Pin
LongRange.Shooter7-Sep-06 8:11
LongRange.Shooter7-Sep-06 8:11 
QuestionAppbar - when exiting the desktop area isn't re-occupied by other apps Pin
Muller27-Sep-06 5:16
Muller27-Sep-06 5:16 
AnswerRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
led mike7-Sep-06 5:42
led mike7-Sep-06 5:42 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Muller27-Sep-06 8:12
Muller27-Sep-06 8:12 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
led mike7-Sep-06 8:17
led mike7-Sep-06 8:17 
GeneralRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
mav.northwind7-Sep-06 10:01
mav.northwind7-Sep-06 10:01 
AnswerRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Nader Elshehabi7-Sep-06 6:08
Nader Elshehabi7-Sep-06 6:08 
JokeRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Guffa7-Sep-06 9:25
Guffa7-Sep-06 9:25 
JokeRe: Appbar - when exiting the desktop area isn't re-occupied by other apps Pin
Nader Elshehabi7-Sep-06 11:32
Nader Elshehabi7-Sep-06 11:32 
QuestionPlaying media files in a Web Browser Pin
AB77717-Sep-06 4:53
AB77717-Sep-06 4:53 
AnswerRe: Playing media files in a Web Browser Pin
ic3b3rg38-Sep-06 12:09
ic3b3rg38-Sep-06 12:09 
QuestionGet a pixel color on the desktop Pin
Ista7-Sep-06 4:48
Ista7-Sep-06 4:48 
AnswerRe: Get a pixel color on the desktop Pin
Dustin Metzgar7-Sep-06 5:06
Dustin Metzgar7-Sep-06 5:06 
GeneralRe: Get a pixel color on the desktop Pin
Jun Du7-Sep-06 5:12
Jun Du7-Sep-06 5:12 

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.