Hi All ,
How to bind the gridview through ajax call Method using Arraylist Object result. i have implemented it . i am not sure where did mistake. can anyone check correct my mistake.I never bind grid like this .
Sample code :
Ajax call :
dummy grid :
private void BindColumnToGridview()
{
DataTable dt = new DataTable();
dt.Columns.Add("Branch");
dt.Columns.Add("Barcode");
dt.Columns.Add("Name");
dt.Columns.Add("InventoryDesc");
dt.Columns.Add("CategoryName");
dt.Columns.Add("Amount");
dt.Columns.Add("Qty");
dt.Rows.Add();
gvDetails.DataSource = dt;
gvDetails.DataBind();
gvDetails.Rows[0].Visible = false;
}
Note : Arraylist having data , when append time its not loading properly.

Tuhin PaulPosted May 31, 2024, 6:38 PM
In this TypeScript version, I've added type annotations for variables and function parameters. This helps catch type-related errors during development, making your code more robust. I've used arrow functions for event handlers to check lexical scoping of
this. If you have TypeScript configured in your project, this code will be type-checked during compilation, providing additional safety and better code maintenance.Tuhin PaulPosted May 31, 2024, 6:35 PM
You can use template literals (backticks ``) for cleaner string interpolation instead of string concatenation (
+). This improves readability. While the data is being fetched, you can display a loading indicator (e.g., spinner) to provide feedback to the user. Remove it when the data is loaded or in case of an error.Amit MohantyPosted May 31, 2024, 5:24 AM
Once try this: