Groups | Blog | Home
all groups > dotnet windows forms databinding > february 2006 >

dotnet windows forms databinding : DataGridTableStyle problem


Jonathan Crawford
2/14/2006 12:05:37 PM
Hi



I have a datagrid (ui_grdProduct) and I want to change the columns. I think
the code below should work

but it does absolutely nothing. I am clearly missing something simple.

I would appreciate a pointer

thanks

jc

Dim tableStyle As New DataGridTableStyle

tableStyle.MappingName = "Product"

tableStyle.ColumnHeadersVisible = False

tableStyle.RowHeaderWidth = 100

tableStyle.ReadOnly = True

Me.ui_grdProduct.TableStyles.Clear()

Me.ui_grdProduct.TableStyles.Add(tableStyle)

Me.ui_grdProduct.Refresh()


--
===============
Jonathan Crawford
jc@tgsi.net
===============

Bart Mermuys
2/14/2006 1:43:36 PM
Hi,

[quoted text, click to view]

Make sure the MappingName is correct. Check with yourDataTable.TableName.

HTH,
Greetings


[quoted text, click to view]

AddThis Social Bookmark Button