Groups | Blog | Home
all groups > vb.net > april 2004 >

vb.net : How to set Datagrid column width programmically ?


Cor Ligthert
4/14/2004 5:14:15 PM
Hi Agnes

For special effects with the datagrid a lot of links

Complete very nice control
<http://dotnet.leadit.be/extendeddatagrid>

Faqs
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp

http://www.microsoft.com/belux/nl/msdn/community/columns/jtielens/datagrid.mspx

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/wnf_CustDataGrid.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridtextboxcolumnclassformattopic.asp

Format
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchformattingwindowsformsdatagridvisualbasicprimer.asp

Button
http://www.i-syn.gmxhome.de/devcom/colstyles/controlbutton.htm

Combobox
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q

DateTimePicker\ this is more the page how to inherrit
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridcolumnstyleclasstopic.asp

I hope this helps a little bit?

Cor


hirf-spam-me-here NO[at]SPAM gmx.at
4/14/2004 5:25:32 PM
* "Agnes" <agnes@dynamictech.com.hk> scripsit:
[quoted text, click to view]

<URL:http://msdn.microsoft.com/library/en-us/dv_vstechart/html/vbtchformattingwindowsformsdatagridvisualbasicprimer.asp>
-> "Setting Column Width"

--
Herfried K. Wagner [MVP]
Agnes
4/14/2004 11:10:35 PM
I set my datagrid's datasource programmically . However , as the form load,
I found that every column width is the same,
Question 1) How can i adjust it programmically ???
Question 2) I need to do some specail effect as the user press 'enter' in
the 3rd column, how can i know the user press 'enter' in the 3rd column ??

Thanks in advance
From Agnes

AddThis Social Bookmark Button