Click here to Skip to main content
15,886,919 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: vb.net textspeaker Pin
DaveyM698-Jun-11 0:37
professionalDaveyM698-Jun-11 0:37 
QuestionNeeds to update WinForm (seperate process) to render newly created customized controls Pin
glitteringsound2-Jun-11 13:27
glitteringsound2-Jun-11 13:27 
AnswerRe: Needs to update WinForm (seperate process) to render newly created customized controls Pin
Philippe Mori2-Jun-11 14:00
Philippe Mori2-Jun-11 14:00 
GeneralRe: Needs to update WinForm (seperate process) to render newly created customized controls Pin
glitteringsound2-Jun-11 19:56
glitteringsound2-Jun-11 19:56 
AnswerRe: Needs to update WinForm (seperate process) to render newly created customized controls Pin
BobJanova8-Jun-11 1:22
BobJanova8-Jun-11 1:22 
AnswerRe: Needs to update WinForm (seperate process) to render newly created customized controls Pin
Luc Pattyn8-Jun-11 2:36
sitebuilderLuc Pattyn8-Jun-11 2:36 
AnswerRe: Needs to update WinForm (seperate process) to render newly created customized controls Pin
Shameel4-Jul-11 5:14
professionalShameel4-Jul-11 5:14 
QuestionSet DataGridView cell value and add a new row Pin
Uros Calakovic26-May-11 5:08
Uros Calakovic26-May-11 5:08 
I have an unbound DataGridView control with two columns. The first one is a DataGridViewButtonColumn and the second DataGridViewTextBoxColumn. When my form is first shown the DGW is empty and the only row is the one with the * in the row header (new/empty row) When I click a cell in the first column an OpenFileDialog gets shown and when I select a file the file name is written in the second cell in the same row. This works, but the row is still marked with * and a new row isn't added.

If I edit the second cell manually, the row header is marked with the pencil sign and a new/empty row is added below. Is there a way to achieve this when I edit a cell programatically? Here is my current code:


private void dataGridView1_CellContentClick(
    object sender, DataGridViewCellEventArgs e)
{
    if (e.ColumnIndex == 0)
    {
        SelectFile(e.RowIndex);
    }
}

private void SelectFile(int rowIndex)
{
    if (openFileDialog.ShowDialog() == DialogResult.OK)
    {
        dataGridView1.Rows[rowIndex].Cells[1].Value =
            openFileDialog.FileName;
        dataGridView1.CurrentCell = dataGridView1.Rows[rowIndex].Cells[1];
    }
}

The bearing of a child takes nine months, no matter
how many women are assigned.

QuestionSecondhand comp BIOS disk Pin
Granny200712-May-11 13:47
Granny200712-May-11 13:47 
AnswerRe: Secondhand comp BIOS disk Pin
Dave Kreskowiak12-May-11 16:05
mveDave Kreskowiak12-May-11 16:05 
GeneralRe: Secondhand comp BIOS disk Pin
Granny200712-May-11 16:56
Granny200712-May-11 16:56 
GeneralRe: Secondhand comp BIOS disk Pin
Dave Kreskowiak12-May-11 17:27
mveDave Kreskowiak12-May-11 17:27 
AnswerRe: Secondhand comp BIOS disk Pin
dan!sh 12-May-11 18:49
professional dan!sh 12-May-11 18:49 
GeneralRe: Secondhand comp BIOS disk Pin
Granny200712-May-11 19:20
Granny200712-May-11 19:20 
GeneralRe: Secondhand comp BIOS disk Pin
Richard MacCutchan12-May-11 22:15
mveRichard MacCutchan12-May-11 22:15 
AnswerRe: Secondhand comp BIOS disk Pin
Abhinav S12-May-11 22:50
Abhinav S12-May-11 22:50 
GeneralRe: Secondhand comp BIOS disk Pin
Granny200713-May-11 12:57
Granny200713-May-11 12:57 
GeneralRe: Secondhand comp BIOS disk Pin
Thomas Krojer24-May-11 3:29
Thomas Krojer24-May-11 3:29 
QuestionHow come I can call Public Methods of a Form as if they were Shared? Pin
Sander Rossel11-May-11 8:49
professionalSander Rossel11-May-11 8:49 
AnswerRe: How come I can call Public Methods of a Form as if they were Shared? Pin
Luc Pattyn11-May-11 9:47
sitebuilderLuc Pattyn11-May-11 9:47 
GeneralRe: How come I can call Public Methods of a Form as if they were Shared? Pin
Sander Rossel11-May-11 10:27
professionalSander Rossel11-May-11 10:27 
GeneralRe: How come I can call Public Methods of a Form as if they were Shared? Pin
Dave Kreskowiak11-May-11 10:56
mveDave Kreskowiak11-May-11 10:56 
GeneralRe: How come I can call Public Methods of a Form as if they were Shared? Pin
Sander Rossel11-May-11 11:09
professionalSander Rossel11-May-11 11:09 
GeneralRe: How come I can call Public Methods of a Form as if they were Shared? Pin
Luc Pattyn11-May-11 12:41
sitebuilderLuc Pattyn11-May-11 12:41 
AnswerRe: How come I can call Public Methods of a Form as if they were Shared? Pin
Eddy Vluggen11-May-11 10:44
professionalEddy Vluggen11-May-11 10:44 

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.