how to set existing column as primary key in vb.net
  • how can set primary column to existing to column in datatable using vb.net code.
  • 1 Comment sorted by
  • Vote Up0Vote Down ithackerithacker
    117.50 Karma Accepted Answer
    use this code



    dt.PrimaryKey = New DataColumn() dt.Columns(0)}

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Tagged

Popular Posts of the Week

    Optimum Creative