-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: BusyWizy
Message 2 in Discussion
seems like u have omitted critical sections of your code. please post the
code with all relevant sections (including variable declerations etc.). it
should be such that members can just copy-paste it in visual studio and run
it.
regards,
nauzad kapadia [mvp]
From: MockRaviEverGreen
>Message 1 in Discussion
>
>hai everybody
>iam ravi i want to set the width of columns in a datagrid at designtime i
>used the following
>code but still the headings are dissappear so anybody run this code and
>give me the correct code
>
> tcol = New DataColumn("Category ID")
> tcol.AutoIncrement = True
> tblCategory.Columns.Add(tcol)
>
> tcol = New DataColumn("Category Name")
> tblCategory.Columns.Add(tcol)
>
> trow = tblCategory.NewRow
> trow("Category ID") = "1"
> trow("Category Name") = "Variation in account figures"
> tblCategory.Rows.Add(trow)
>
> trow = tblCategory.NewRow
> trow("Category ID") = "2"
> trow("Category Name") = "Funds Diversion / Diversion of funds"
> tblCategory.Rows.Add(trow)
>
> ts.MappingName = "Categories"
> Me.DataGrid1.TableStyles.Add(ts)
> cs.MappingName = "Category ID"
> cs.Width = 50
> ts.GridColumnStyles.Add(cs)
>
> cs = New DataGridTextBoxColumn()
> cs.MappingName = "Category Name"
> cs.Width = 150
> ts.GridColumnStyles.Add(cs)
>
>
>'Me.DataGrid1.TableStyles("Categories").GridColumnStyles("Category
>Name").Width = 500
> ds.Tables.Add(tblCategory)
> DataGrid1.SetDataBinding(ds, "Categories")
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]