Click here to Skip to main content
15,906,329 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak26-May-04 4:11
mveDave Kreskowiak26-May-04 4:11 
GeneralRe: Printing Multiple documents Pin
Thangavel26-May-04 4:41
Thangavel26-May-04 4:41 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak26-May-04 5:05
mveDave Kreskowiak26-May-04 5:05 
GeneralRe: Printing Multiple documents Pin
Thangavel26-May-04 19:07
Thangavel26-May-04 19:07 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak27-May-04 2:44
mveDave Kreskowiak27-May-04 2:44 
GeneralRe: Printing Multiple documents Pin
Thangavel28-May-04 23:24
Thangavel28-May-04 23:24 
GeneralRe: Printing Multiple documents Pin
Dave Kreskowiak29-May-04 14:16
mveDave Kreskowiak29-May-04 14:16 
GeneralDataGridTableStyle Pin
joypreeti26-May-04 3:28
joypreeti26-May-04 3:28 
hi friends,
i have a datagrid in my project and i m using a datatable to fill the datagrid.the default preferredcolumnwidht property is set to 200.
but i want to use datagridtable style and disply the columns with different widhts but all efforts til now went in vain......
the code i used is pasted below..........
plz help me.
the code for style whihc i used is commented.....

hoping for quick solutions.....



Dim lDataTable As New DataTable("ItemList")
mintRecCount = Datasource.Length

lDataTable.Columns.Add("Code", System.Type.GetType("System.String"))
lDataTable.Columns.Add("Description", System.Type.GetType("System.String"))
lDataTable.Columns.Add("UOM", System.Type.GetType("System.String"))
lDataTable.Columns.Add("Quantity", System.Type.GetType("System.Int32"))
'lDataTable.Columns.Add("AltQty", System.Type.GetType("System.Int32"))
lDataTable.Columns.Add("Weight", System.Type.GetType("System.Single"))
lDataTable.Columns.Add("Price", System.Type.GetType("System.Single"))
For mRowIndex = 0 To mintRecCount - 1
lDataRow = lDataTable.NewRow()
'code for entering data into the datarow
lDataTable.Rows.Add(lDataRow)
Next mRowIndex
lDataTable.Columns(0).ReadOnly = True
lDataTable.Columns(1).ReadOnly = True
lDataTable.Columns(2).ReadOnly = True
lDataTable.Columns(4).ReadOnly = True
'Dim ts As New DataGridTableStyle
'ts.MappingName = "ItemList"

'Dim cs As DataGridTextBoxColumn
'cs = New DataGridTextBoxColumn
'cs.MappingName = "Code"
'cs.HeaderText = "Code"
'cs.Width = 64
'ts.GridColumnStyles.Add(cs)

'similiar code for other columns
'dgOrdInvAddItem.TableStyles.Add(ts)
dgOrdInvAddItem.DataSource = lDataTable

GeneralRe: DataGridTableStyle Pin
Werner Vos26-May-04 22:10
Werner Vos26-May-04 22:10 
GeneralRemote Events... Pin
waffleman26-May-04 2:48
waffleman26-May-04 2:48 
GeneralRe: Remote Events... Pin
Dave Kreskowiak26-May-04 3:47
mveDave Kreskowiak26-May-04 3:47 
GeneralRe: Remote Events... Pin
waffleman27-May-04 8:15
waffleman27-May-04 8:15 
GeneralRe: Remote Events... Pin
Dave Kreskowiak27-May-04 9:40
mveDave Kreskowiak27-May-04 9:40 
GeneralRe: Remote Events... Pin
waffleman1-Jun-04 3:13
waffleman1-Jun-04 3:13 
Generalmessanger password Pin
ahmad_yossef25-May-04 23:29
ahmad_yossef25-May-04 23:29 
GeneralRe: messanger password Pin
Dave Kreskowiak26-May-04 0:45
mveDave Kreskowiak26-May-04 0:45 
GeneralRe: messanger password Pin
Aaron Eldreth26-May-04 4:03
Aaron Eldreth26-May-04 4:03 
Generalit's possible....... Pin
Night_Soul25-May-04 22:55
Night_Soul25-May-04 22:55 
GeneralRe: it's possible....... Pin
Dave Kreskowiak26-May-04 0:43
mveDave Kreskowiak26-May-04 0:43 
GeneralRe: it's possible....... Pin
Anonymous26-May-04 4:18
Anonymous26-May-04 4:18 
GeneralRe: it's possible....... Pin
Dave Kreskowiak26-May-04 4:22
mveDave Kreskowiak26-May-04 4:22 
Generalhelp running project Pin
GaryKoh25-May-04 17:13
GaryKoh25-May-04 17:13 
GeneralRe: help running project Pin
Nick Seng25-May-04 18:45
Nick Seng25-May-04 18:45 
GeneralRe: help running project Pin
GaryKoh25-May-04 19:25
GaryKoh25-May-04 19:25 
GeneralRe: help running project Pin
Nick Seng25-May-04 19:48
Nick Seng25-May-04 19:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.