Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
AnswerRe: ThreadAbortException and SQL? Pin
Le centriste23-Feb-06 18:30
Le centriste23-Feb-06 18:30 
GeneralRe: ThreadAbortException and SQL? Pin
Kuira9-Mar-06 15:59
Kuira9-Mar-06 15:59 
QuestionBindingsource & Tableadapters Pin
monrobot1323-Feb-06 16:35
monrobot1323-Feb-06 16:35 
QuestionLock a document Pin
Lilupa23-Feb-06 16:20
Lilupa23-Feb-06 16:20 
QuestionDataGird Can U help Me Pin
AnhTin23-Feb-06 16:02
AnhTin23-Feb-06 16:02 
AnswerRe: DataGird Can U help Me Pin
Praveen Nayak23-Feb-06 17:14
Praveen Nayak23-Feb-06 17:14 
GeneralRe: DataGird Can U help Me Pin
AnhTin23-Feb-06 18:57
AnhTin23-Feb-06 18:57 
GeneralRe: DataGird Can U help Me Pin
Praveen Nayak23-Feb-06 19:18
Praveen Nayak23-Feb-06 19:18 
try this. Note that dataGrid1 must be a DataGrid control that you dragged and dropped onto your form.

using System.Data;
...

private void MainForm_Load(object sender, System.EventArgs e)
{
DataSet ds = new DataSet();
ds.Tables.Add ("One");
ds.Tables[0].Columns.Add ("A");
ds.Tables[0].Columns.Add ("B");

ds.Tables[0].Columns[0].DataType = typeof (bool);
ds.Tables[0].Columns[1].DataType = typeof (string);

ds.Tables[0].Rows.Add (new object[] {true, "First"});

dataGrid1.DataSource = ds;
}
...

Hope this helps.



There has to be more to life than just this
GeneralRe: DataGird Can U help Me Pin
AnhTin23-Feb-06 20:23
AnhTin23-Feb-06 20:23 
GeneralRe: DataGird Can U help Me Pin
Maqsood Ahmed23-Feb-06 22:34
Maqsood Ahmed23-Feb-06 22:34 
Questionretrieving the installion path during installion wizard Pin
2hdass23-Feb-06 13:26
2hdass23-Feb-06 13:26 
AnswerRe: retrieving the installion path during installion wizard Pin
veeru_syd27-Feb-06 12:44
veeru_syd27-Feb-06 12:44 
QuestionHandle Word prompts during Automation Pin
Guinness4Strength23-Feb-06 12:30
Guinness4Strength23-Feb-06 12:30 
Questiontyped dataset Pin
fmardani23-Feb-06 11:02
fmardani23-Feb-06 11:02 
QuestionListBox Invalidate issue Pin
Clarke7623-Feb-06 9:24
Clarke7623-Feb-06 9:24 
QuestionC# key/mouse detection Pin
weizur123-Feb-06 9:11
weizur123-Feb-06 9:11 
AnswerRe: C# key/mouse detection Pin
Robin Panther23-Feb-06 12:21
Robin Panther23-Feb-06 12:21 
GeneralRe: C# key/mouse detection Pin
weizur123-Feb-06 12:44
weizur123-Feb-06 12:44 
GeneralRe: C# key/mouse detection Pin
Allah On Acid23-Feb-06 15:28
Allah On Acid23-Feb-06 15:28 
GeneralRe: C# key/mouse detection Pin
weizur123-Feb-06 20:49
weizur123-Feb-06 20:49 
GeneralRe: C# key/mouse detection Pin
Allah On Acid24-Feb-06 4:24
Allah On Acid24-Feb-06 4:24 
GeneralRe: C# key/mouse detection Pin
Robin Panther23-Feb-06 21:45
Robin Panther23-Feb-06 21:45 
QuestionGDI TextOut and System.OutOfMemoryException Pin
Draders2323-Feb-06 8:10
Draders2323-Feb-06 8:10 
Questionc# desktop database application Pin
stefan1223-Feb-06 7:40
stefan1223-Feb-06 7:40 
AnswerRe: c# desktop database application Pin
Sean8923-Feb-06 8:48
Sean8923-Feb-06 8:48 

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.