Click here to Skip to main content
15,904,926 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Twin TreeView Pin
Shameel4-Jul-11 5:19
professionalShameel4-Jul-11 5:19 
GeneralRe: Twin TreeView Pin
Ger Hayden4-Jul-11 10:21
Ger Hayden4-Jul-11 10:21 
GeneralRe: Twin TreeView Pin
Shameel4-Jul-11 18:41
professionalShameel4-Jul-11 18:41 
GeneralRe: Twin TreeView Pin
Ger Hayden4-Jul-11 21:16
Ger Hayden4-Jul-11 21:16 
GeneralRe: Twin TreeView Pin
Mycroft Holmes4-Jul-11 20:07
professionalMycroft Holmes4-Jul-11 20:07 
AnswerRe: Twin TreeView Pin
BillWoodruff16-Jul-11 20:54
professionalBillWoodruff16-Jul-11 20:54 
GeneralRe: Twin TreeView Pin
Ger Hayden16-Jul-11 23:36
Ger Hayden16-Jul-11 23:36 
Questionvb.net textspeaker Pin
damoder18-Jun-11 0:18
damoder18-Jun-11 0:18 
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 

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.