-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: BusyWizy
Message 4 in Discussion
to set the heading u need to use the following line
cs.HeaderText = "your heading"
besides what other problem r u facing ? the rest of it seems to be running fine
regards
nauzad kapadia [mvp]
>hai iam sending with declaration so could u pl run it and i want the
>heading also it doesnt give any error but it disappear the headings
>
> Dim tblCategory As New DataTable("Categories")
> Dim trow As DataRow
> Dim ds As New DataSet()
> Dim tcol As DataColumn
> Dim ts As New DataGridTableStyle()
> Dim cs As New DataGridTextBoxColumn()
>
> 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]