Click here to Skip to main content
15,896,459 members
Home / Discussions / C#
   

C#

 
Questionhow to make list in property grid? Pin
AlanJones18-Oct-04 11:10
AlanJones18-Oct-04 11:10 
AnswerRe: how to make list in property grid? Pin
Heath Stewart18-Oct-04 11:46
protectorHeath Stewart18-Oct-04 11:46 
GeneralRe: how to make list in property grid? Pin
AlanJones19-Oct-04 10:01
AlanJones19-Oct-04 10:01 
GeneralRe: how to make list in property grid? Pin
Heath Stewart19-Oct-04 11:07
protectorHeath Stewart19-Oct-04 11:07 
GeneralRe: how to make list in property grid? Pin
AlanJones23-Oct-04 13:00
AlanJones23-Oct-04 13:00 
GeneralUsing SignatureCapturing in PocketPc Pin
mathon18-Oct-04 10:26
mathon18-Oct-04 10:26 
GeneralRe: Using SignatureCapturing in PocketPc Pin
Nick Parker18-Oct-04 15:37
protectorNick Parker18-Oct-04 15:37 
GeneralDataGrid Set Column Width Pin
mfcuser18-Oct-04 10:03
mfcuser18-Oct-04 10:03 
I want to know how to use DataGridColumnStyle to set the width of my datagrid. I know how to use PreferredColumnWidth to set the width of the oveall colunm, but it is not what I want. I want to set individual column.

Here is my program

I also want to know if there is a good documentation for the .net classes. While I was working in the DataGridClass. My class is defined as dataGrid1, from dataGrid1, there is not way to know that DataGridColumnStyle exists. I want to know is there is a good book or documentation tha point out intaction between associated classes like for instance DataGrid and DataGridColumnStyle.

<br />
private void Form1_Load(object sender, System.EventArgs e)<br />
		{<br />
			double[] dData1 = new double[100];<br />
			double[] dData2 = new double[100];<br />
<br />
			DataTable dt = new DataTable();<br />
			DataRow dr;<br />
<br />
			dt.Columns.Add(new DataColumn("Index", typeof(int)));<br />
			dt.Columns.Add(new DataColumn("Sinve Values", typeof(float)));<br />
			dt.Columns.Add(new DataColumn("Cosine Values", typeof(float)));<br />
			<br />
			dataGrid1.PreferredColumnWidth = 100;//set the overall column width<br />
		<br />
			for(int i=0;i<100;i++)<br />
			{<br />
				dData1[i] = Math.Sin(0.1*i);<br />
				dData2[i] = Math.Cos(0.2*i);<br />
				dr = dt.NewRow();<br />
				dt.Rows.Add(dr);<br />
				dr[0] = i;;<br />
				dr[1] = dData1[i];<br />
				dr[2] = dData2[i];			<br />
			}			<br />
			dataGrid1.DataSource = new DataView(dt);     <br />
			waveformPlot1.PlotY(dData1);<br />
			waveformPlot2.PlotY(dData2);<br />
		}<br />

GeneralRe: DataGrid Set Column Width Pin
Heath Stewart18-Oct-04 11:53
protectorHeath Stewart18-Oct-04 11:53 
GeneralRe: DataGrid Set Column Width Pin
mfcuser19-Oct-04 8:03
mfcuser19-Oct-04 8:03 
GeneralRe: DataGrid Set Column Width Pin
Heath Stewart19-Oct-04 12:44
protectorHeath Stewart19-Oct-04 12:44 
GeneralText on Image control Pin
JAntonaccio18-Oct-04 9:31
JAntonaccio18-Oct-04 9:31 
GeneralRe: Text on Image control Pin
Heath Stewart18-Oct-04 11:50
protectorHeath Stewart18-Oct-04 11:50 
GeneralNtier app Pin
StephenMcAllister18-Oct-04 7:55
StephenMcAllister18-Oct-04 7:55 
GeneralRe: Ntier app Pin
Christian Graus18-Oct-04 10:08
protectorChristian Graus18-Oct-04 10:08 
GeneralRe: Ntier app Pin
Colin Angus Mackay18-Oct-04 11:46
Colin Angus Mackay18-Oct-04 11:46 
GeneralRe: Ntier app Pin
StephenMcAllister18-Oct-04 16:28
StephenMcAllister18-Oct-04 16:28 
GeneralRe: Ntier app Pin
Salil Khedkar19-Oct-04 22:40
Salil Khedkar19-Oct-04 22:40 
GeneralRe: Ntier app Pin
Carl Mercier21-Oct-04 18:50
Carl Mercier21-Oct-04 18:50 
GeneralRe: Ntier app Pin
StephenMcAllister23-Oct-04 7:53
StephenMcAllister23-Oct-04 7:53 
GeneralAdjusting the columns on the datagrid Pin
steve_rm18-Oct-04 5:54
steve_rm18-Oct-04 5:54 
GeneralRe: Adjusting the columns on the datagrid Pin
Heath Stewart18-Oct-04 7:31
protectorHeath Stewart18-Oct-04 7:31 
GeneralRe: Adjusting the columns on the datagrid Pin
steve_rm19-Oct-04 7:44
steve_rm19-Oct-04 7:44 
GeneralRe: Adjusting the columns on the datagrid Pin
Heath Stewart19-Oct-04 7:54
protectorHeath Stewart19-Oct-04 7:54 
GeneralDetecting the enter key Pin
exhaulted18-Oct-04 5:18
exhaulted18-Oct-04 5:18 

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.