Hola, quisiera formatear una columna de datagrid en particular.
Asi lleno al datagrid:
Código:
cn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & nombrebase & ";Persist Security Info=False") ' note 5323 is the name of dbase
rs2.Open(tablanombre, cn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic)
ds.Tables.Add(tablanombre)
ol.Fill(ds.Tables(tablanombre), rs2)
ds.DataSetName = cn.ConnectionString
Me.MSGrid.DataSource = ds.Tables(tablanombre)
MSGrid.CaptionText = nombrebase
''MsgBox(MSGrid.DataSource.columns.count)
''MsgBox(MSGrid.DataSource.columns.item(1).columnname())
''MsgBox(MSGrid.TableStyles(1).ToString)
Call AutoSizeDataGridColumns(MSGrid, tablanombre, 1)
cn.Close()
Como hago por ejemplo para cambiar el formato de la columna 2 por ejemplo a MM/dd/yyyy H:mm:ss ?
Gracias!