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

C#

 
GeneralRe: Playing flv files Pin
Evgeni5713-May-09 21:58
Evgeni5713-May-09 21:58 
Questionrestore database at an other server Pin
adsana13-May-09 17:57
adsana13-May-09 17:57 
AnswerRe: restore database at an other server Pin
Mycroft Holmes13-May-09 18:05
professionalMycroft Holmes13-May-09 18:05 
AnswerRe: restore database at an other server Pin
Rhys Jacob13-May-09 22:23
Rhys Jacob13-May-09 22:23 
QuestionHow to modify the foreach identifier? Pin
blackhattrick13-May-09 17:02
blackhattrick13-May-09 17:02 
AnswerRe: How to modify the foreach identifier? PinPopular
Luc Pattyn13-May-09 17:28
sitebuilderLuc Pattyn13-May-09 17:28 
JokeRe: How to modify the foreach identifier? Pin
Samer Aburabie13-May-09 20:22
Samer Aburabie13-May-09 20:22 
QuestionDynamically adding a action to a datagrid Pin
Brad Wick13-May-09 13:29
Brad Wick13-May-09 13:29 
In this application I am playing with, I am generating a tabcontrol on the fly where each tab is a folder name in a directory. I am then dynamically adding a new DataGridView onto the new tab that was created and listing out the files inside of this directory (there are no sub directorys which is the reason I am doing it this way). This is all working file exactly like what I want except I can not figure out how to build a dynamic onrow click event because I have no idea how many tabs the application will have in the future. Can someone point me in the correct direction?

Listed below is the code that is looped through when adding the dataGrid to each tab (notice the name has the tabIndex).

DataGridView dataGridTicketInformation = new System.Windows.Forms.DataGridView();
dataGridTicketInformation.Name = "dataGridView" + tabIndex.ToString();
dataGridTicketInformation.Size = new System.Drawing.Size(401, 201);

// First we need to add a column
dataGridTicketInformation.Columns.Clear();
dataGridTicketInformation.Columns.Add("Name", "Name");
dataGridTicketInformation.Columns[0].Width = 301;

dataGridTicketInformation.Columns.Add("Data", "Data");
dataGridTicketInformation.Columns[1].Width = 100;

// Clear all the old Data first
dataGridTicketInformation.Rows.Clear();
AnswerRe: Dynamically adding a action to a datagrid Pin
Mycroft Holmes13-May-09 14:30
professionalMycroft Holmes13-May-09 14:30 
AnswerRe: Dynamically adding a action to a datagrid Pin
Henry Minute13-May-09 14:38
Henry Minute13-May-09 14:38 
GeneralRe: Dynamically adding a action to a datagrid Pin
Mycroft Holmes13-May-09 18:07
professionalMycroft Holmes13-May-09 18:07 
GeneralRe: Dynamically adding a action to a datagrid Pin
Henry Minute13-May-09 23:18
Henry Minute13-May-09 23:18 
GeneralRe: Dynamically adding a action to a datagrid Pin
Mycroft Holmes13-May-09 23:23
professionalMycroft Holmes13-May-09 23:23 
GeneralRe: Dynamically adding a action to a datagrid Pin
Henry Minute14-May-09 0:04
Henry Minute14-May-09 0:04 
GeneralRe: Dynamically adding a action to a datagrid Pin
Brad Wick14-May-09 4:58
Brad Wick14-May-09 4:58 
GeneralRe: Dynamically adding a action to a datagrid Pin
Henry Minute14-May-09 11:13
Henry Minute14-May-09 11:13 
GeneralRe: Dynamically adding a action to a datagrid Pin
Brad Wick14-May-09 13:00
Brad Wick14-May-09 13:00 
GeneralRe: Dynamically adding a action to a datagrid Pin
Henry Minute14-May-09 13:13
Henry Minute14-May-09 13:13 
QuestionC# & Core 2 due CPUs Pin
Mohammad Dayyan13-May-09 12:30
Mohammad Dayyan13-May-09 12:30 
AnswerRe: C# & Core 2 due CPUs Pin
Luc Pattyn13-May-09 12:46
sitebuilderLuc Pattyn13-May-09 12:46 
AnswerRe: C# & Core 2 due CPUs Pin
Joe Woodbury13-May-09 15:38
professionalJoe Woodbury13-May-09 15:38 
Questionhow to add numbers to form with specified position Pin
Aljaz11113-May-09 12:27
Aljaz11113-May-09 12:27 
AnswerRe: how to add numbers to form with specified position Pin
Tony Richards13-May-09 12:43
Tony Richards13-May-09 12:43 
GeneralRe: how to add numbers to form with specified position Pin
Aljaz11113-May-09 12:46
Aljaz11113-May-09 12:46 
GeneralRe: how to add numbers to form with specified position Pin
Luc Pattyn13-May-09 13:20
sitebuilderLuc Pattyn13-May-09 13:20 

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.