Gridview
-
is it possible to display the records in a grid view with the help of writing the codes in the aspx.cs page if yes kindly give some links where i can refer to the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.
modified on Saturday, June 6, 2009 1:59 AM
-
is it possible to display the records in a grid view with the help of writing the codes in the aspx.cs page if yes kindly give some links where i can refer to the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.
modified on Saturday, June 6, 2009 1:59 AM
-
is it possible to display the records in a grid view with the help of writing the codes in the aspx.cs page if yes kindly give some links where i can refer to the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.
modified on Saturday, June 6, 2009 1:59 AM
Padmanabhan
-
is it possible to display the records in a grid view with the help of writing the codes in the aspx.cs page if yes kindly give some links where i can refer to the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.
modified on Saturday, June 6, 2009 1:59 AM
Mathew P V wrote:
the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.
WEll, perhaps you need to post your code, so we can see what you're doing wrong. If you're binding to a datasource, then the records will show, so long as your control itself is visible.
Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
-
Mathew P V wrote:
the reason is because its not showing the records that i want so i want it to be displayed so i thought of writing the query in .cs page and display manually without the use of datasource.
WEll, perhaps you need to post your code, so we can see what you're doing wrong. If you're binding to a datasource, then the records will show, so long as your control itself is visible.
Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
i have not started writing code for grid view i did was using the datasource for retreiving values the sql query is as follows SELECT DISTINCT LeaveMaster.LeaveType, LeaveAllotted.NoOfDays FROM LeaveMaster INNER JOIN LeaveAllotted ON LeaveMaster.LeaveTypeID = LeaveAllotted.LeaveTypeID INNER JOIN EmpCategType ON LeaveAllotted.EmpCategID = EmpCategType.EmpCategID INNER JOIN GeneralInfo ON EmpCategType.EmpCategID = GeneralInfo.EmpCategID INNER JOIN GenderMaster ON LeaveAllotted.GenderID = GenderMaster.GenderID AND GeneralInfo.GenderID = GenderMaster.GenderID the problem because there are both male and females staffs in my GeneralInfo table its showing both leaves for both the employees infact it should should male leave to males and female leaves to female
-
Padmanabhan
thanks for the link i am studying i could not open the project as i have to install vs2005 in my system i will check that as soon as possible once again thanks for the link it is so usefull for a fresher like me
-
i have not started writing code for grid view i did was using the datasource for retreiving values the sql query is as follows SELECT DISTINCT LeaveMaster.LeaveType, LeaveAllotted.NoOfDays FROM LeaveMaster INNER JOIN LeaveAllotted ON LeaveMaster.LeaveTypeID = LeaveAllotted.LeaveTypeID INNER JOIN EmpCategType ON LeaveAllotted.EmpCategID = EmpCategType.EmpCategID INNER JOIN GeneralInfo ON EmpCategType.EmpCategID = GeneralInfo.EmpCategID INNER JOIN GenderMaster ON LeaveAllotted.GenderID = GenderMaster.GenderID AND GeneralInfo.GenderID = GenderMaster.GenderID the problem because there are both male and females staffs in my GeneralInfo table its showing both leaves for both the employees infact it should should male leave to males and female leaves to female
OK, so your SQL needs fixing ? Your problem has nothing to do with the gridview then ?
Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
-
OK, so your SQL needs fixing ? Your problem has nothing to do with the gridview then ?
Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
kindly tell me how to display the records in a gridview by writing code in the .cs page or send me a link which have the description related to this a reply from you will be deeply appreciated
-
kindly tell me how to display the records in a gridview by writing code in the .cs page or send me a link which have the description related to this a reply from you will be deeply appreciated
-
kindly tell me how to display the records in a gridview by writing code in the .cs page or send me a link which have the description related to this a reply from you will be deeply appreciated
Do you not own any references on ASP.NET ? Does google not work where you live ? EIther you're not explaining this right ( possible, as the only code you've posted is SQL ), or you're struggling with something quite trivial.
Christian Graus Driven to the arms of OSX by Vista. Please read this[^] if you don't like the answer I gave to your question. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.