Forms Data Controls :: Binding A Gridview With Huge Data From The Database?
Mar 1, 2010what is the best way to bind a gridview with data from the database when the data is huge so that the application is fast?
View 5 Replieswhat is the best way to bind a gridview with data from the database when the data is huge so that the application is fast?
View 5 RepliesI am Using OboutGrid to Display the data in my Webforms..this is cool when am binding small data..but when am binding huge data it takes more time to display the records rather than normal datagrid. How can i improve the performance..
<obout:Grid ID="GridView1" runat="server" AllowAddingRecords="false"
AutoGenerateColumns="false" CallbackMode="true"
FolderStyle="styles/style_13" Serialize="true" ShowColumnsFooter="true" ShowGroupFooter="true"
onrowdatabound="GridView1_RowDataBound" PageSize="-1"
PageSizeOptions="1,2,3,4,5,6,7,8,9,10,50,100,500,-1">
[Code] ....
with the code to present data in a gridview but without binding it to a database.
View 3 RepliesI am working with GridView, When huge amount of Data is inserted in the GridView its columns became very thin all tall, however I want to Display the Gridview with Fix size and if the Data is hugeit only display the starting few words of Data.in other words I want to use gridView same like the GMAIL account where Data Display like this. .
View 2 RepliesI have a gridview with around 7000 rows in it.
The page takes huge amont of time to load..infact sometimes the browser just crashes..
Its a search form and the requirements are such that i cannot enable pagination in it.
How can i decrease the load time...
When i navigate to certain page, gridview should be display.
Conditions is:
1)There is no data to display.(now only i am going to enter data). I am not binding gridview to any datatable/dataset
2)Initially it can show 10 or 20 empty rows.(all row should be editable. we should enter the value in that rows.)
3)When i click next button after entering 20 rows it should add another row. and so on..
i want a gridview like excel sheet.
i have problem while connecting to my MSAccess Database in App_Data Folder in Ajax enabled website.
How to bind Gridview with MsAcess Databse in Ajax enabled website?
I have few textboxes and I want to search the text (partial search is also required) in the database and then show the result in a telerik grid. The grid has to be hidden initially and when I click the search button it should show up and display the results.
View 2 Replieshow can I create a query in order to select some records every time user wanna to display them into a gridview. I don't want to select all entire records from my data source. What I exactly want is to simulate pagination by query.
View 1 RepliesWe have our web-based car tracking (gps) software developed in asp.net. We receive positional information every 30 seconds. Overall we get millions of records everyday. We have a historical view which displays the position where the car was throughout the day (24hr period) - this page takes a long time to load. We tried indexing the db, de-normalizing it and also re-wrting the queries - but still not a great improvement. Is there any other best practise that we should follow to load huge loads of data into a webpage (there should be no pagination)? Can we somehow bring it to the clientside using AJAX and try loading it when the button is clicked?
View 3 Repliesregarding getting data from XML file and binding gridview with data .
View 6 Repliesnot quit sure where I've go wrong with this but hopefully someone might have an idea why this isn't working:
This what I thought would work:
[code]....
But it's not! what I get for the OnClientClick attribute is: "DeleteRowKey=<%# dataBinder.Eval(Container.dataItem, "idx_mstrWord") %> "
I've tried several variations (EVAL, BIND, specifying the container and not specifying the container),
none of which gives the expected results; OnClientClick="DeleteKeyRow=12345"
If I add a label and set the text to: <%# dataBinder.Eval(Container.dataItem, "idx_mstrWord") %> I get a number which is what I should but if I try to get it to embed it so my cleint script can work with the data all I get is binding command.
What am I doing wrong? I really don't want to have to kludge around with some hidden field and then have to search through the grid to get at this data key. I need this key on the client side in order to provide additional details in my confirmation popup modal.
I ran into this kind of situation many times without a nice solution. Binding a data source to a gridview and one of the column require nested query. Is it possible to have a callback function other than Eval()?
something like CallbackFunc(Eval("SomeField"));
I have a Data Table which Populate from the Stored Procedure which is below
[Code]....
and iam binding the Gridview with Data Table it is working .Now i have to make some thing visible and Invisible based upon some Value like below
Datatable dtTable = (Viewstate)["StatusData"]; // Same Data Table which is Data Source of Gridview Control
[Code]....
Where Status.Open is an integer Enum value like Open = 1 and Close = 2 .row["Status"] is the Text Open and i want to compare with integer valueHow i compare the Values ? i have to use the same Data table or not?
Is it possible to bind data wholly from client side in GridView using JavaSript and ASP.NET AJAX 3.5 ? I want to avoid using UpdatePanels.
View 1 RepliesWhen i bind gridview to stored procedure what i found it only shows data after enabling Autogeneratecolumns and it also doesnot show any column in boundedfield. Due to which i am unable to apply formating to individual column according to my requirement. One possible reason may be table is created in stored procedure due to which it generate fields at run time.
View 7 RepliesI'm a bit of an ASP.NET newbie and I am creating a data table in memory and binding this to a gridview control. The code is as follows:
Dim DstBasket As New DataSet, TblBasket As New DataTable
With TblBasket
.Columns.Add("BskPrdCd", System.Type.GetType("System.String"))
.Columns.Add("BskPrdDesc", System.Type.GetType("System.String"))
.Columns.Add("BskQty", System.Type.GetType("System.Int16"))
.LoadDataRow(Split("12345,Test product 1,1", ","), True)
.LoadDataRow(Split("122,Test product 2,2", ","), True)
.LoadDataRow(Split("123A,Test product 3,5", ","), True)
.LoadDataRow(Split("44,Test product 4,1", ","), True)
End With
DstBasket.Tables.Add(TblBasket)
With LfnGridView("GdvBasket")
.DataSource = DstBasket
.DataBind()
End With
The data displays in the gridview control fine with both edit & delete options but when I attempt to delete, it has no effect. How do I force removal of the relevant row from both gridview and table? Most of the documentation I have unearthed shows how to achieve this when connected to a SQL table which is clearly not the case here.
Gridview data binding which already has some data?
DataTable dt = new DataTable();
I having problem binding web service result into a gridview. I using Word Dictionary Web Service for my project. Below is part of my code.
Web References I using is :
[URL]
Protected void Button1_Click(object sender,
EventArgs e) {
DictService ds = new DictService();
ds.DefineAsync(TextBox1.Text);
ds.DefineCompleted += new DefineCompletedEventHandler(ds_DefineCompleted); }
void ds_DefineCompleted(object sender, DefineCompletedEventArgs e){
GridView1.DataSource = e.Result;
GridView1.DataBind();}
The Error i get is : Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource.
how to use an sp to bind the datagrid.
View 3 RepliesI'm having 2 grid views on my aspx page, First gridview contains textboxes which are dynamically created, when user fills all text boxes and clicks on a button, i need to capture all those rows in data table and bind it to second gridview. I'm reading the datatable rows and each text box values, while binding the data, i cannot see any data except one column.
[Code]....
[Code]....
[Code]....
[Code]....
I have three tables
tbl_Cus CatID (Int) CustID(int) CabID(int)
tbl_Cat CatID(int) CatName(varchar) CusID
tbl_Cab CatId(int) CabID(int) CabName(varchar)
I am using Tree View control for the first time.
The above tables I want to bind it to a tree view control the tree view should look some thing like this.
Cus Name1
Cat Name1
CabName1
CabName2
CatName2
CabName1
CabName2
Cus Name2
Cat Name3
CabName1
CabName2
CatName4
CabName1
CabName2
I am trying to export huge record (having more than 3000000 of records) to exl file.
i have one class file which have function ExportToExcell .it is working fine for samll records ..but for big record,got fallowing error
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
Function is as falllow-first string for file name and othere three for any heading in exl file and datatable is data toexport.
I got all data in datatable but got error when try to export to exl
[Code]....
here I am binding two dropdownlist and featching some value from database through stored procedure
below is my sp
ALTER PROCEDURE [dbo].[Get_OpenCostCode]
-- Add the parameters for the stored procedure here
(@UserId NVARCHAR(50)) [Code]....
and here is the .cs code
[Code]....]
but wen i run this shows error,There is already an open DataReader associated with this Command which must be closed first.
I also put in my connectionstring tag in webconfig file MultipleActiveResultSets=true;