DataGridView Multiple columns

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #16
    Please don't repost your entire comment just to bump it. It was a holiday weekend in Canada so I wasn't checking the thread.

    For your question, please read and understand what the code does. The variable, dcValue, is just the column I created for the purposes of your example. If your data table has a different column you want to split with, use that instead.

    You don't need to construct dtMain... your adapter.Fill already gets you the dataset, so just pick the table you want and go from there. I think you can reference columns by names as well (look at DataTable.Colum ns["COLUMN_NAM E"]).

    Comment

    • Hasankhan
      New Member
      • Oct 2012
      • 6

      #17
      Thanks Alot
      Mr. GaryTexmo

      Finaly its working its all because of you,
      you are great.

      Thanks again
      Hasan

      Comment

      Working...