Could anyone tell me whether datagrid in asp.net can be used without database bcos if it is used means not visible during runtime.. anyone can advise if u know in this regard.........
prakashmca07 0 Newbie Poster
Recommended Answers
Jump to PostDataGrids, Repeaters, etc., do not have to be used with database connections, they can be bound with other collections. Take this example:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
Jump to PostThe above post is correct. I want to add when you use arraylist of objects, the public properties of the objects in that arraylist are similar to columns of your SQL queried data.
All 5 Replies
apegram 302 LINQ! Team Colleague
Lusiphur commented: Nice to see someone giving examples but not doing peoples' work for them :) Instructive = good! +9
padtes 30 Junior Poster in Training
prakashmca07 0 Newbie Poster
rispy -2 Newbie Poster
rispy -2 Newbie Poster
Lusiphur commented: If you have a question please start a thread. Posting in a 2+ year old thread with a new question = not so great ;) -2
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.