Grid View Column
-
i create control and this control derived from gridview control.then i add 2 column in constructor like this : InitializeComponent(); this.AutoGenerateColumns = false; DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn(); cb.HeaderText = ""; cb.Name = "dgvcSelect"; this.Columns.Add(cb); DataGridViewTextBoxColumn tb = new DataGridViewTextBoxColumn(); tb.Name = "dgvcRowNumber"; tb.HeaderText = "ردیف"; but when i run my program 4 column generate for me.where is the problem? please help me
-
i create control and this control derived from gridview control.then i add 2 column in constructor like this : InitializeComponent(); this.AutoGenerateColumns = false; DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn(); cb.HeaderText = ""; cb.Name = "dgvcSelect"; this.Columns.Add(cb); DataGridViewTextBoxColumn tb = new DataGridViewTextBoxColumn(); tb.Name = "dgvcRowNumber"; tb.HeaderText = "ردیف"; but when i run my program 4 column generate for me.where is the problem? please help me
Don't cross post in multiple forums. Pick one forum best suited to your question and post your question once!
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
i create control and this control derived from gridview control.then i add 2 column in constructor like this : InitializeComponent(); this.AutoGenerateColumns = false; DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn(); cb.HeaderText = ""; cb.Name = "dgvcSelect"; this.Columns.Add(cb); DataGridViewTextBoxColumn tb = new DataGridViewTextBoxColumn(); tb.Name = "dgvcRowNumber"; tb.HeaderText = "ردیف"; but when i run my program 4 column generate for me.where is the problem? please help me
Need a bit more of the code the way this code looks is that you have created two columns but can't see enough to know what is happening. Please post the entire scope of the problem so we can help.
Thanks JD http://www.seitmc.com/seitmcWP
-
Need a bit more of the code the way this code looks is that you have created two columns but can't see enough to know what is happening. Please post the entire scope of the problem so we can help.
Thanks JD http://www.seitmc.com/seitmcWP
You realize that this post is over 6 months old, right? Chances are good we'll never hear from his again.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
You realize that this post is over 6 months old, right? Chances are good we'll never hear from his again.
A guide to posting questions on CodeProject[^]
Dave KreskowiakHA! Well no I didn't look at the date. Doh! Just looking to do some give back.
Thanks JD http://www.seitmc.com/seitmcWP