473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sequence of columns at databinding

Hi,

I have a collection object which i am binding to a ASP.Net datagrid. Columns
are not appearing in the proper sequence as I would like it to appear on
datagrid. I know I can modify the columns definition in data grid to change
the order as I want and also by setting AutoGenerate columns to false. But I
am wondering is there a way I can set the order at collection level?

I have implemented the iList interface at collection.

Following is the example of my code:

public class Item
{
public string A
{
{get... set... }
}
public int B
{
{get .. set}
}

public string C
{
{get .. set}
}
}

public class ItemCollection: iCollection,iList
{

}

Following is the sequence how the properties are appearing on my datagrid if
I select AutoGenerate columns:

B---> C ---> A
I want it to appear in following order:
A ---> B ---> C

Is there a way to do it?

Regards,

Sarfraz
Jul 21 '05 #1
0 1288

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve Morrell | last post by:
Hi there, I'm trying to write a piece of sql to set an Oracle sequence's nextval to a number specified my the max value in a set of columns. The sequence is populating these columns, so I want...
0
by: Sarfraz Hooda | last post by:
Hi, I have a collection object which i am binding to a ASP.Net datagrid. Columns are not appearing in the proper sequence as I would like it to appear on datagrid. I know I can modify the...
0
by: R Corona | last post by:
I am creating a datagrid that has four columns. I am creating the first, an edit column and the last in the html of the page. The middle two are being added in the code behind. One is a readonly...
0
by: Simon | last post by:
I've created several columns at run time and added these to my datagrid using the following: Select Case templateType Case ListItemType.Header lc = New Literal lc.Text = "<B>" & columnName &...
2
by: Mr Newbie | last post by:
Ive got the basic idea behind DataBinding Expressions, but I have a couple of questions, Ok its four actually :) Q1.) It would appear that if you use Page.DataBind that all child controls and...
2
by: Tumurbaatar S. | last post by:
I dynamically add columns to DataGrid as described in MSDN articles "Top Questions about the DataGrid Web Server Control" and "Creating Web Server Control Templates Programmatically". The columns...
3
by: Brooke | last post by:
I have a form with a datagridview and I set the columns that I want on the grid. Whenever I close the form in the form designer and then open it back up, it will pull in all of the columns from...
2
by: =?Utf-8?B?U2F2dm91bGlkaXMgSW9yZGFuaXM=?= | last post by:
Which is the event sequence when a gridview button (for update) is clicked and the page is post back? I am also a bit confused when to use ..IsPostBack(). If my page data is changing maybe in every...
7
by: MayoM | last post by:
Access 2003 has suddenly reordered the sequence of columns in a datasheet subform. Specifically the last column has stayed in place but the others are back to front. There are about 50 columns in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.