Ghaffar
Ghaffar

Reputation: 55

AspNet Gridview Display

I am working on a small inventory webform application using visual studio 2017 community in asp.net. Initially when I started developing this application the GridView was displaying by applying style using jquery properly. But now its display has been distorted. I have already unistalled and installed jquery but the problem still persists. Currently jQuery 3.1.1 is installed in my application although there is an update i.e. 3.2.1 is available which I am not able to update due to the following error:

"'jQuery 3.2.1' is not compatible with 'AspNet.ScriptManager.jQuery 3.1.1 constraint: jQuery (>= 3.1.1 && < 3.1.2)'."

Could you please give me a way to fix the gridview display style problem. I am attaching the sample of the gridview:

enter image description here

Upvotes: 0

Views: 65

Answers (1)

wazz
wazz

Reputation: 5058

Create a style like this:

<style>
    .gvw th, .gvw td { padding: 2px 6px; } /* change as needed. */
</style>

Inside the gridview add css style:

<asp:GridView ID="myGvw" runat="server" CssClass="gvw">
</asp:GridView>

Upvotes: 1

Related Questions