質問

In Visual Studio 2010 if I click on any <div> or <span> anywhere in the design view it selects this one grid always. Has anyone ever seen this? Are there any ways to fix this?

The only controls in design view that I can click on are textboxes / dropdowns / buttons / linkbuttons etc. So when I want to quickly jump to a span to edit its contents I have to click on the nearest one of those controls then make my way over to the <span>. Cause if I click on the <span>, BOOM highlight the gridview. It is driving me insane!

UPDATE

when i exceed 17 columns in the gridview this is happening. anything less than 17 does not cause this issue. i'd say this is a bug, and after a certain amount of columns the gridview does not function properly in design view and throws off other elements in the page.

役に立ちましたか?

解決

This is what I have done do "work around" this problem.

It is a design view problem, not code.

Any time you have a grid view that has enough fields to push if off to the right of the visible editing area in design view, this bug will occur. Clicking spans and divs will always highlight that grid, it is so annoying.

You can expand your design view window wide enough to see the entire grid and this problem goes away for the time being. it is extremely annoying but works.

i am sure there are other work arounds but i have not seen anyone else have this problem (most people dont use the design view).

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top