Click here to Skip to main content
15,916,945 members
Home / Discussions / C#
   

C#

 
GeneralRe: A bug with vista Pin
Colin Angus Mackay7-Dec-08 13:57
Colin Angus Mackay7-Dec-08 13:57 
AnswerRe: A bug with vista Pin
Colin Angus Mackay7-Dec-08 10:34
Colin Angus Mackay7-Dec-08 10:34 
QuestionHow to create a GUI using Visual Studio for a SQL database? Pin
Vloops7-Dec-08 7:55
Vloops7-Dec-08 7:55 
AnswerRe: How to create a GUI using Visual Studio for a SQL database? Pin
Christian Graus7-Dec-08 10:09
protectorChristian Graus7-Dec-08 10:09 
GeneralRe: How to create a GUI using Visual Studio for a SQL database? Pin
Vloops7-Dec-08 10:42
Vloops7-Dec-08 10:42 
GeneralRe: How to create a GUI using Visual Studio for a SQL database? Pin
Christian Graus7-Dec-08 11:26
protectorChristian Graus7-Dec-08 11:26 
Questionconnecting my phone to a web service in a local computer [modified] Pin
harcaype7-Dec-08 5:14
harcaype7-Dec-08 5:14 
AnswerRe: connecting my phone to a web service in a local computer Pin
Marcelo Emmerich7-Dec-08 5:44
Marcelo Emmerich7-Dec-08 5:44 
GeneralRe: connecting my phone to a web service in a local computer Pin
harcaype7-Dec-08 6:21
harcaype7-Dec-08 6:21 
GeneralRe: connecting my phone to a web service in a local computer Pin
Marcelo Emmerich7-Dec-08 21:20
Marcelo Emmerich7-Dec-08 21:20 
GeneralRe: connecting my phone to a web service in a local computer Pin
harcaype8-Dec-08 1:05
harcaype8-Dec-08 1:05 
GeneralRe: connecting my phone to a web service in a local computer Pin
Marcelo Emmerich8-Dec-08 1:46
Marcelo Emmerich8-Dec-08 1:46 
GeneralRe: connecting my phone to a web service in a local computer Pin
harcaype8-Dec-08 3:33
harcaype8-Dec-08 3:33 
QuestionTesting Code - MbUnit / xUnit Pin
Jammer7-Dec-08 4:15
Jammer7-Dec-08 4:15 
AnswerRe: Testing Code - MbUnit / xUnit Pin
Thomas Weller7-Dec-08 8:17
Thomas Weller7-Dec-08 8:17 
GeneralRe: Testing Code - MbUnit / xUnit Pin
Jammer7-Dec-08 8:21
Jammer7-Dec-08 8:21 
Questioncreate Sequence diagram Pin
Ronenb7-Dec-08 2:50
Ronenb7-Dec-08 2:50 
AnswerRe: create Sequence diagram Pin
Seraph_summer7-Dec-08 2:55
Seraph_summer7-Dec-08 2:55 
GeneralRe: create Sequence diagram Pin
Ronenb7-Dec-08 3:05
Ronenb7-Dec-08 3:05 
AnswerRe: create Sequence diagram Pin
Xmen Real 7-Dec-08 6:39
professional Xmen Real 7-Dec-08 6:39 
GeneralRe: create Sequence diagram Pin
Ronenb7-Dec-08 19:16
Ronenb7-Dec-08 19:16 
QuestionCan chart control be used in VC# 2008 express edition? Pin
Seraph_summer7-Dec-08 2:46
Seraph_summer7-Dec-08 2:46 
AnswerRe: Can chart control be used in VC# 2008 express edition? Pin
0x3c07-Dec-08 3:32
0x3c07-Dec-08 3:32 
QuestionKeeping current new row in DataGridView on deactivate Pin
AndrusM7-Dec-08 1:04
AndrusM7-Dec-08 1:04 
To reproduce:

1. Run code
2. Press down arrow
3. Click in second form title
4. Click in first form title
5. Enter some characters

Observed:

Entered data appears in first row

Expected:

Entered data should appear in second row

How to fix ?


using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Windows.Forms;<br />
<br />
class TestApplication<br />
{<br />
    static void Main()<br />
    {<br />
        var p = new Form();<br />
        p.IsMdiContainer = true;<br />
        p.WindowState = FormWindowState.Maximized;<br />
        var f1 = new TestForm();<br />
        var f2 = new Form();<br />
        f2.MdiParent = p;<br />
        f1.MdiParent = p;<br />
        f1.Show();<br />
        f2.StartPosition = FormStartPosition.Manual;<br />
        f2.Left = 300;<br />
        f2.Show();<br />
        Application.Run(p);<br />
    }<br />
}<br />
<br />
class TestForm : Form<br />
{<br />
    internal DataGridView grid = new DataGridView();<br />
    internal List<Customer> list;<br />
<br />
    public TestForm()<br />
    {<br />
        Controls.Add(grid);<br />
        BindingSource BindingSource = new BindingSource();<br />
        list = new List<Customer>();<br />
        list.Add(new Customer() { Name = "test" });<br />
        BindingList<Customer> bindingList = new BindingList<Customer>(list);<br />
        BindingSource.DataSource = bindingList;<br />
        grid.DataSource = bindingList;<br />
    }<br />
}<br />
<br />
class Customer<br />
{<br />
    public string Name { get; set; }<br />
}


Andrus

AnswerRe: Keeping current new row in DataGridView on deactivate Pin
Xmen Real 7-Dec-08 3:56
professional Xmen Real 7-Dec-08 3:56 

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.