Riddhi Valecha

Riddhi Valecha

  • 429
  • 3.2k
  • 396.9k

Responsive Gridview in asp.net

Apr 21 2015 10:47 PM
Hi all...

I need some javascript or css to make my gridview responsive...

My current scenario -

I have a gridview and a datatable.

I get data from back-end in datatable and bind this to gridview...

i.e.
grd_Employees.DataSource = table;
grd_Employees.Databind()
--------------------
Now, here there is no <Colummns> <asp:BoundColumn> </asp:BoundColumn> </Column>
-----------
THe AutogenerateColumns = true and AutogenerateSelectbutton = true.
Events - SelectIndexChange (for selecting rows) and ROwDatabound (for alignment of records).
----------
Now,
1.
How to make this resopsive ?

I have already visited the link -

http://www.c-sharpcorner.com/UploadFile/47548d/responsive-grid-view-in-Asp-Net/

2.
Also, I want to make the heading / Columns names big in height ??

It is very small now !!

--------
The method in the link shows the example with <Columns> and <asp:BoundField>

Please help..



Answers (5)