
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x4D;&#x44;&#x49;&#x5B50;&#x7A97;&#x4F53;&#x4C;&#x6F;&#x61;&#x64;&#x4E8B;&#x4EF6;&#x4E2D;&#x8BBE;&#x7F6E;&#x44;&#x61;&#x74;&#x61;&#x47;&#x72;&#x69;&#x64;&#x56;&#x69;&#x65;&#x77;&#x884C;&#x9AD8;&#x3001;&#x80CC;&#x666F;&#x8272;&#x5931;&#x6548;&#xFF01;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x30;&#x39;&#x2D;&#x31;&#x30;&#x2D;&#x31;&#x33;&#x20;&#x31;&#x31;&#x3A;&#x33;&#x34;&#x20;&#x41;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=16">&#x57;&#x69;&#x6E;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> &#x5728;&#x7A97;&#x4F53;&#x7684;Load&#x4E8B;&#x4EF6;&#x4E2D;&#x8BBE;&#x7F6E;DataGridView&#x884C;&#x9AD8;&#x3001;&#x80CC;&#x666F;&#x8272;&#x4EE3;&#x7801;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;private void Form2_Load(object sender, EventArgs e)<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;using (SqlConnection conn = new SqlConnection(&#34;server=(local);database=Northwind;user id=sa;password=sa;&#34;))<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;using (SqlDataAdapter adapter = new SqlDataAdapter(&#34;Sel&#101;ct * FROM Products&#34;, conn))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DataTable table = new DataTable();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter.Fill(table);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dataGridView1.DataSource = table;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;//&#x8BBE;&#x7F6E;&#x7B2C;&#x4E00;&#x884C;&#x9AD8;&#x5EA6;&#x3001;&#x80CC;&#x666F;&#x8272;<br/>&nbsp;&nbsp;&nbsp;&nbsp;dataGridView1.Rows[0].Height = 100;<br/>&nbsp;&nbsp;&nbsp;&nbsp;dataGridView1.Rows[0].DefaultCellStyle.BackColor = Color.Red;<br/>}<br/>&#x82E5;&#x7A97;&#x4F53;&#x4E0D;&#x662F;MDI&#x5B50;&#x7A97;&#x4F53;&#xFF0C;&#x4E0A;&#x8FB9;&#x4EE3;&#x7801;&#x80FD;&#x6B63;&#x5E38;&#x8FD0;&#x884C;&#xFF1B;&#x5F53;&#x7A97;&#x4F53;&#x505A;&#x4E3A;MDI&#x5B50;&#x7A97;&#x4F53;&#x65F6;&#xFF0C;&#x6570;&#x636E;&#x7ED1;&#x5B9A;&#x6B63;&#x5E38;&#xFF0C;&#x4F46;&#x4E0D;&#x80FD;&#x8BBE;&#x7F6E;&#x884C;&#x9AD8;&#x548C;&#x80CC;&#x666F;&#x8272;&#xFF01;&#x83B7;&#x53D6;&#x8BBE;&#x7F6E;&#x540E;&#x7684;&#x503C;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;private void button1_Click(object sender, EventArgs e)<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.Show(dataGridView1.Rows[0].Height.ToString() + &#34;\r\n&#34; + dataGridView1.Rows[0].DefaultCellStyle.BackColor.ToString());<br/>&nbsp;&nbsp;&nbsp;&nbsp;/*<br/>&nbsp;&nbsp;&nbsp;&nbsp; * &#x7ED3;&#x679C;&#xFF1A;<br/>&nbsp;&nbsp;&nbsp;&nbsp; * <br/>&nbsp;&nbsp;&nbsp;&nbsp; * 23<br/>&nbsp;&nbsp;&nbsp;&nbsp; * Color[Empty]<br/>&nbsp;&nbsp;&nbsp;&nbsp;*/<br/>}<br/>&#x8BF4;&#x660E;&#x8BBE;&#x7F6E;&#x672A;&#x751F;&#x6548;&#xFF01;&#x540E;&#x6D4B;&#x8BD5;&#x53D1;&#x73B0;&#xFF0C;&#x82E5;&#x5728;&#x6309;&#x94AE;&#x70B9;&#x51FB;&#x4E8B;&#x4EF6;&#x4E2D;&#x8BBE;&#x7F6E;DataGridView&#x884C;&#x9AD8;&#x3001;&#x80CC;&#x666F;&#x8272;&#x5374;&#x53C8;&#x53EF;&#x4EE5;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;private void button1_Click(object sender, EventArgs e)<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;//&#x8BBE;&#x7F6E;&#x7B2C;&#x4E00;&#x884C;&#x9AD8;&#x5EA6;&#x3001;&#x80CC;&#x666F;&#x8272;<br/>&nbsp;&nbsp;&nbsp;&nbsp;dataGridView1.Rows[0].Height = 100;<br/>&nbsp;&nbsp;&nbsp;&nbsp;dataGridView1.Rows[0].DefaultCellStyle.BackColor = Color.Red;<br/>&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.Show(dataGridView1.Rows[0].Height.ToString() + &#34;\r\n&#34; + dataGridView1.Rows[0].DefaultCellStyle.BackColor.ToString());<br/>&nbsp;&nbsp;&nbsp;&nbsp;/*<br/>&nbsp;&nbsp;&nbsp;&nbsp; * &#x7ED3;&#x679C;&#xFF1A;<br/>&nbsp;&nbsp;&nbsp;&nbsp; * <br/>&nbsp;&nbsp;&nbsp;&nbsp; * 100<br/>&nbsp;&nbsp;&nbsp;&nbsp; * Color[Red]<br/>&nbsp;&nbsp;&nbsp;&nbsp;*/<br/>}<br/>&#x6682;&#x672A;&#x627E;&#x5230;&#x539F;&#x56E0;&#xFF01;</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.035&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x4D;&#x44;&#x49;&#x5B50;&#x7A97;&#x4F53;&#x4C;&#x6F;&#x61;&#x64;&#x4E8B;&#x4EF6;&#x4E2D;&#x8BBE;&#x7F6E;&#x44;&#x61;&#x74;&#x61;&#x47;&#x72;&#x69;&#x64;&#x56;&#x69;&#x65;&#x77;&#x884C;&#x9AD8;&#x3001;&#x80CC;&#x666F;&#x8272;&#x5931;&#x6548;&#xFF01;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.035&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.035&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
