How to generate PK cell based on multi field values of DGV ?!
Hi…:wave:
I’ve got vb.net form connected to MS database (.mdb)…
I set data type some columns of DGV to int32 with certain formats…
For instance:
Col 1 value:00000078
Col2 value:011
Col3 value:0005
I would like “col 4” to be set as a primary key:
Col 4 value (PK) will result: 000000780110005
So what the codes to generate primary key based on values joined from multi-columns cells for data grid view?!
Hope My Q is clear !
Best Regards…:)
Re: How to generate PK cell based on multi field values of DGV ?!
look up a "computed column" ... they are fairly easy to create... and then you can apply a PKey index to it.
-tg
Re: How to generate PK cell based on multi field values of DGV ?!
Quote:
Originally Posted by
techgnome
look up a "computed column" ... they are fairly easy to create... and then you can apply a PKey index to it.
-tg
THANKS...:)
I'll try look for "computed column"...
Best Regards...