Sunday, April 17, 2011
VB.net DataGridView, Move Row Item By Draging
Download Source (VB.net 2010)
This a sample code how to moving DataGridView rows item with drag and droping, you can move item to every line, check it!
I using this code for get the index of rows where user droping a data:
Private Sub DataGridView1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles DataGridView1.DragDrop
Dim CP As Point = DataGridView1.PointToClient(New Point(e.X, e.Y))
Dim RowDestination As Integer = DataGridView1.HitTest(CP.X, CP.Y).RowIndex
Dim RowSource As Integer = e.Data.GetData("System.String")
If RowDestination >= 0 Then
Dim tmp(0 To DataGridView1.Rows(0).Cells.Count - 1)
'saving Cells
For i = 0 To tmp.Count - 1
tmp(i) = DataGridView1.Rows.Item(RowSource).Cells(i).Value
Next
DataGridView1.Rows.RemoveAt(RowSource)
DataGridView1.Rows.Insert(RowDestination, 1)
'Aplly Saved Cells
For i = 0 To tmp.Count - 1
DataGridView1.Rows(RowDestination).Cells(i).Value = tmp(i)
Next i
DataGridView1.Rows(RowDestination).Selected = True
End If
End Sub
Subscribe to:
Post Comments (Atom)
11 comments:
Each listing includes the skills taught and the suggested age for the activity.
WIFI:Als Verbindungsmoglichkeiten ins Internet stehen Ihnen WIFI
wireless lan zu Verfugung. Each child is given 30 seconds to
race to the pile and make as many matches as possible before time runs out.
Here is my blog online radio
I gοt this web site frоm mу frіenԁ who shaгed with me abоut
thіs wеb ѕite anԁ at the moment thiѕ tіme Ι am browsіng thіs wеb page
and reading very іnformative articles oг гeѵіews at this ρlaсe.
Revieω my blog: radiosender
Thanks for every other wonderful post. The
place else may anyone get that kind of info in such a perfect way of
writing? I've a presentation next week, and I am at the search for such info.
Here is my blog ... http://www.sharpcredit.com/index.php?do=/blog/20270/enhance-a-cash-for-gold-within-half-the-time-without-spending-additional-mo
my web site - empty
Usually, a brand new website takes about six months to one year to
appear in the SERPs of Google, assuming the service provider is worth their salt.
''. The race is becoming even more challenging
with the passing of each day. This gives your name higher credibility
and better search engine rank. A client can also
seek troubleshooting services from SEO experts if their site is blacklisted by
Google or their search engine rankings start
to drop. It would cut the marketing project to fit it into your budget.
While these 5 truths may seem self-evident, it is the astonishing fact that they are contradicted, and even outright
disputed, in the greater SEO debate. Lastly, make sure that you have a reliable work-at-home
office. The businesses have understood the need to take SEO services
for attaining good search engine placement. Also make sure that the articles are of high quality as
it is the key to get better rankings on search engines and more profits.
Use SEM experts to recognize duplicate content as
part of your website, and act immediately to have it settled.
If the comments are created for solely promotional
purposes, they will probably get deleted. Let us assume that at this point you have 6
keywords. Regardless of whether you like it, love it, or hate it,
social media has become a major player in the SEO world, and it is a costly mistake to ignore it.
These professionals follow ethical SEO strategy and effectively implement it that finally increases your website visibility.
The sooner a site is presented in the search result, or the higher
it “ranks”, the more searchers will visit the site.
In fact, soon, not using RDFa could put a site at a disadvantage.
Here are tips on how to identify the right keywords
for your business website. First of all a market survey is done by them as to know the competitors analysis.
Image Optimization is also a part of SEO services in Pune.
Feel free to surf to my web-site ... Jenifer
And then, you'll probably see that the battery's charge won't be as durable as before. As you lift out the screen you'll see it is still attached via a ribbon cable.
Both Intel and AMD contain information built in the processor to allow
the processor to be used efficiently with mobile computing
saving on battery life while giving the best performance.
Look into my page ... keep reading
These five free basketball game apps for the i
- Phone will surely help you get your game on.
A look into some of the best Star Wars apps to be found on i - Tunes,
including games, fun soundboards, books, and more. The player guides Phen through
10 levels of dungeon gameplay, finding a whole host of weapons and other items as well.
My website gratis spiele spielen
Gгеatе piеces. Kеeρ ωrіtіng ѕuch kіnd of infoгmаtion on your blog.
Im really impressed by youг sіte.
Hi thеre, Yοu hаve performed
an іncredіble job. Ι'll definitely digg it and in my opinion recommend to my friends. I'm confident
they'll be benefited from this site.
Have a look at my site :: raspberry ketone
Warrior focuses on the both two men's journey to Sparta, a 16-man middleweight MMA grand prix tournament to be held in Atlantic City that promises $5 million to the winner. Although it can be the easy, fast, and simple choice, keep in mind that for the cost of that one meal, you can partake in at least one other activity on another day. For a tourist with a religious bent of mind, it may be the Golden Buddha or the Reclining Buddha, or it may be the famous shopping places for the modern youth.
Here is my blog: necessary
Face - Time, originally released in June 2010, is an Apple created video chat application that allows any device running
on i - OS or Macintosh computer featuring a Face - Time camera to connect to
one another. Here are some tips on how to make this folder smaller, as well as how to deal with export and compression
in a way to lower the overall drive space taken up.
' Game begins with a reasonable limit, but it gradually increases to excess as it becomes interesting and compelling to player.
My web-site ... videos downloaden
Luke,
You've got won this debate hands down. That is the internet, where men and women do not listen to facts, but they merely reiterate their ideas and reject actuality. You've got the actual comic books backing you up.
Excellent job, guy. The case is settled, and I'm content with what I have found.
As for the rest of these in this debate, SLOWLY study Luke's comic
scans with an open mind. Superman does things I have Never
seen Hulk do. 200 Quintillion tons beats 100 billion tons by really a extended shot.
Hulk holds up half the earth, Supes splits a moon of Saturn by himself.
Supes is faster than flash. He moves beyond the speed of light.
His strength is unmatchable soon after he spends time within the sunshine.
And the record goes on.
As for Andre's last publish, those dc vs marvel crossovers are fan-based wins, not actual capabilities.
Any conflicting opinions ought to be supported by scans, not rhetoric.
my webpage; premature ejaculation control exercises video
The problem with our education method in this country is that our country values sports, athleticism,
and celebrities greater than education.. . If we really
allow, say, understanding math, physics, and chemistry be optional in higher college (and university), our society would be fall behind our countries so quickly we'd be screwed.? How beneficial are a? bunch of English majors and dancers for society?. . This speech is just flowery poetry to me.
Feel free to surf to my website :: Unscented pheromones for women to attract men
Post a Comment