Click here to Skip to main content
15,927,869 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Programmatically "corrupt" an mp3 file Pin
Vasudevan Deepak Kumar5-Jan-07 22:39
Vasudevan Deepak Kumar5-Jan-07 22:39 
QuestionProgrammatically "corrupt" an mp3 file Pin
GizmoC1-Jan-07 7:51
GizmoC1-Jan-07 7:51 
AnswerRe: Programmatically "corrupt" an mp3 file Pin
Ed.Poore3-Jan-07 0:21
Ed.Poore3-Jan-07 0:21 
AnswerRe: Programmatically "corrupt" an mp3 file Pin
Vasudevan Deepak Kumar5-Jan-07 22:41
Vasudevan Deepak Kumar5-Jan-07 22:41 
QuestionSample for change column order by mouse in DataGrid Pin
AndrusM1-Jan-07 1:09
AndrusM1-Jan-07 1:09 
AnswerRe: Sample for change column order by mouse in DataGrid Pin
Robert Rohde3-Jan-07 1:14
Robert Rohde3-Jan-07 1:14 
GeneralRe: Sample for change column order by mouse in DataGrid Pin
AndrusM3-Jan-07 7:18
AndrusM3-Jan-07 7:18 
QuestionHow to activate first column after adding row to DataGrid Pin
AndrusM1-Jan-07 1:07
AndrusM1-Jan-07 1:07 
I have WinForms DataGrid bound to DataTable in C#
When new line is added by pressing Down arrow in last row, cursor remains in the current column.

However I need thar first column must become active so user can enter data from begin.

How to implement this ?

To reproduce:

1. Run the code
2. Enter data to second column
3. Press down arrow key

Observed:

Second column in active

Expected:

First column must be active

using System.Windows.Forms;
using System.Data;
static class Program {
	static void Main() {
		Application.Run(new Frm());
		}
	}

class Frm: Form {
	public Frm() {
		DataTable table = new DataTable();
		DataColumn column1 = new DataColumn();
		DataColumn column2 = new DataColumn();
		DataGrid grid = new DataGrid();
		table.Rows.Add();
		grid.Dock = DockStyle.Fill;
		table.Columns.Add(column1);
		table.Columns.Add(column2);
		Controls.Add(grid);
		grid.SetDataBinding(table, "");
		}
	}



Andrus

QuestionCtrl+S is DataGrid does not save data Pin
AndrusM1-Jan-07 1:04
AndrusM1-Jan-07 1:04 
AnswerRe: Ctrl+S is DataGrid does not save data Pin
Christian Graus1-Jan-07 18:25
protectorChristian Graus1-Jan-07 18:25 
GeneralRe: Ctrl+S is DataGrid does not save data Pin
AndrusM2-Jan-07 8:51
AndrusM2-Jan-07 8:51 
QuestionRetriecing the Original Width & Height from Compressed Image [modified] Pin
*Mehraj29-Dec-06 21:38
*Mehraj29-Dec-06 21:38 
QuestionAlternate control for DSO Framer in .net [modified] Pin
indian14329-Dec-06 18:52
indian14329-Dec-06 18:52 
QuestionConvert DataGridView to HTMLTable? Pin
PhrankBooth29-Dec-06 3:16
PhrankBooth29-Dec-06 3:16 
AnswerRe: Convert DataGridView to HTMLTable? Pin
JoeRip1-Jan-07 17:31
JoeRip1-Jan-07 17:31 
GeneralRe: Convert DataGridView to HTMLTable? Pin
PhrankBooth2-Jan-07 2:08
PhrankBooth2-Jan-07 2:08 
QuestionCan I run vb or com components Pin
indian14329-Dec-06 2:00
indian14329-Dec-06 2:00 
AnswerRe: Can I run vb or com components Pin
Paul Conrad29-Dec-06 5:36
professionalPaul Conrad29-Dec-06 5:36 
GeneralRe: Can I run vb or com components Pin
indian14329-Dec-06 18:47
indian14329-Dec-06 18:47 
GeneralRe: Can I run vb or com components Pin
Paul Conrad29-Dec-06 19:01
professionalPaul Conrad29-Dec-06 19:01 
QuestionXML and DBMS Pin
Tauseef A29-Dec-06 1:29
Tauseef A29-Dec-06 1:29 
AnswerRe: XML and DBMS Pin
Pete O'Hanlon2-Jan-07 4:04
mvePete O'Hanlon2-Jan-07 4:04 
QuestionHow to: delete class from compiled in memory assembly? Pin
netvano29-Dec-06 1:13
netvano29-Dec-06 1:13 
AnswerRe: How to: delete class from compiled in memory assembly? Pin
Luc Pattyn29-Dec-06 14:00
sitebuilderLuc Pattyn29-Dec-06 14:00 
GeneralRe: How to: delete class from compiled in memory assembly? Pin
netvano1-Jan-07 21:04
netvano1-Jan-07 21:04 

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.