Re: DataGridView Question
Quote:
Originally Posted by Smark
Hey everyone,
Ive been using VB4-6 for years, and I recently moved to VB.NET. I have a MultiDimension Array: CodeGrid(0 to 40, 0 to 0)
Now, is there an easy way to simply dump that array into a DataGridView? If not, how can I edit, and add rows to the DGV?
Thanks,
Smark
Hi,
Here's a link how to add columns and rows into a datagridview:
http://msdn2.microsoft.com/en-us/lib...ew(VS.80).aspx
Wkr,
sparrow1
Re: DataGridView Question
Thanks for your Response... It worked perfectly.
Now Ive got another issue that I need some help on... I now have a table full of Data. I need to sort it. Ive got 3 columns: Amount, Code, and Summary.
I would like to sort it by Amount, which can be easily done by double-clicking the Column Header. But is there an easy way to sort these in code? I dont need any special sorting order just 5, 2, 4, changed to 5, 4, 2...
Thanks,
Smark
Re: DataGridView Question
Take a look on DataGridView.Sort method.