Add GUID Column in datagrid

  • Thread starter Thread starter Melson
  • Start date Start date
M

Melson

Hi

I've created a GUID column of a table in ms sql server and bind the table to
a datagrid. How can I automatically create new GUID when i add new row in
the datagrid.

Pls help. Thanks.

Regards
Melson
 
If the table is bound, add the row to the table.

Dim g As New Guid
Dim dg As New DataGrid
Dim t As New DataTable
Dim c As New DataColumn("MyGuid")
Dim r As DataRow = t.NewRow()

t.Columns.Add(c)
r(0) = g
t.Rows.Add(r)
 
I just think we should

Freeeeeeee, eeeeeeee, eeeeeeeeeeeeeee, eeeeee,
eeeeeeeeeeeeeeeeeeeeehhhhhhhhhhhhhhhhhhhhhhhhhh

'Melson' Mandeeellllllllaaaaaaaaaaa, ahhhhhhhhhha, ahhhhhhhhhhhh


Sorry, could not resist that !

:)
 
Back
Top