View Complete Post
how to update a Grid view using Ajex
my query is select * From erp where emp>10;
then update the grdi view using ajex if any button Click
how to create database tree view using jquery
how to create jquery tree view using database no MVC use
i am create a tree view in asp.net
When i select staff than i require output is
var treeSelect= All Department->office->Admin->Staff
how to asp.net update panel use in Tree view and grid view
how to select Tree View Client Side using jquery and Show select text and his parent Text
I have a problem displaying data in a Grid View control when I set a row to visible = false when a certain condition is true.
For example, if a DataRowData value has a condition set to true (custom in table) I set the visible property to false, so the data row will not be visible at run time.
The problem is that I'm using paging (10 rows per page) and if 8 of those rows fall into the true condition that won't show the row, that grid view page will only show two rows of data in page 1. The worst scenario is that if I go to page 2 of the grid view and all the rows (10) fall into the true condition, that grid view page will not show any data at all.
How can I show 10 rows of data at all times in a gridview? In other words, I would like to just show the visible rows at all times.
Any help will be greatly appreciated.
You'll have to excuse my ignorance, I'm coming at this from a front-end perspective, and don't really know how to deal with data views in ASP.NET.
Basically, I'm trying to change the layout of some repeated data from a straight table, to something more design-heavy. It's the same data, just re-organised slightly. The current ASP.NET code looks like this:
<asp:GridView ID="GVMoments" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" PageSize="20" RowHeaderColumn="FirstName"
<PagerSettings Mode="NumericFirstLast" PageButtonCount="20" Position="TopAndBottom" />
<asp:BoundField DataField="moment_id" HeaderText="moment_id" ReadOnly="True" SortExpression="moment_id"
Hi Gurus ,
It happened to add an extra Gridveiw Header in row_databound event , It did worked fine on !Postback but disappered on Page.Postback . Quick google search guided me to move the event to Row_Created event and every thing is okay .
Can any expert post some pointers , differnces between grid row_created vs row_databount with some sample table data created dynamically behaviour of both the events in !Postback and page.Postback .
Thanks a tonne in Advance and any inputs will be valued and appreciated .