Hi, Can anyone tell me how to change column name and column width for a DataGrid (Windows.Forms) that is not bound to a DataSet (i.e. not using DataGrid.TableStyles?) Thanks in Advance, [EDIT] Actually, I just figured out how to edit the names by accessing my DataTable, and figured out how to create a TableStyle dynamically: DataGridTableStyle myGridTableStyle = new DataGridTableStyle(); However, Help, says you must first create a new DataGridColumnStyle per the table. This: DataGridColumnStyle myGridColumnStyle = new DataGridColumnStyle(); isn't available, though. Compiler error: Cannot create an instance of the abstract class or interface 'System.Windows.Forms.DataGridColumnStyle' So, anyone know how to get around this? I know I have to use DataGridColumnStyle's to change the width of the column, but if I can't create a DataGridColumnStyle I'm at a loss...(And like I said in the original post: no, I can't use the GUI to accomplish this because I'm not using a DataSource via DataSet, etc.) [/EDIT] -Idealius
I
Idealius
@Idealius
Posts
-
DataGrid Column Properties -
Baseball QuestionThe reason we sing it while we're watching it: We're usually too drunk to REMEMBER we're at a baseball game. On a side note, did you guys see that streaker on that tennis match via the news? It was funny because no one seemed to care: while most men prefer not to be subject to another man's genitalia, maybe it's a nice reprieve after watching tennis. :-D Oh, and: "We're on a mission from God" Dan Akroyd - about 7 or 8 times in Blues Brothers
-
Microsoft Software Engineeringpretty interesting stuff, who knew the name NT evolved from N10?
-
I don't have a cat...you've lost friends and grandparents and losing your cat was worse?!:confused: