15,891,316 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Surendra Patil (Top 17 by date)
Surendra Patil
18-Jul-14 12:33pm
View
How to do it on MVC side?
Surendra Patil
21-Jan-14 3:33am
View
I am not clear about how to do this.
Surendra Patil
21-Jan-14 3:27am
View
Hi Sampath,
Can you please elaborate a bit on Q2 ans.
Surendra Patil
8-Oct-13 5:08am
View
Hey hi, requirement is changed now. Now the requirement is, without affecting current binding, I need to add few new columns and whose order will be decide by user selection. Can we use any method like AddAt or Add.
Surendra Patil
7-Oct-13 7:58am
View
Ok..ya I am also in difficult situation. But thanks for your time. Do tell if you get any solution on this. And how to remove solution as I am not finding any way to remove
Surendra Patil
7-Oct-13 7:37am
View
I am using boundcolumns for all the columns. And i tried to use both but the thing is, the formatting like date formatting and bounding of two values from the database in the same column, and use of webusercontrol can be done with boundcolumn not dynamically. As I am doing enhancement on the client code, so very limited options are available :(
Surendra Patil
7-Oct-13 7:12am
View
Ok..I agree with you on this. But the thing is, I am using boundcolumn instead of auto generating the column. So boundcolumn will always show the data in specific order not according to user.
Surendra Patil
7-Oct-13 6:17am
View
Hey Saroj, I can't use this. Because I am using datagrid not datagridview.
Surendra Patil
7-Oct-13 6:10am
View
I have a view which populates the data. I have provided the modalpopup with datagrid where user will select his context.
I can's set autogeneratecolumns to true bcaz there are some tools like print option, view option which are bounded to the one column. Which will be fixed always. And for the printer option they have used image of the print. So I don't think i can bound those images at code behind.
What i was thinking initially, bound the all the columns to the datagrid and then hide/unhide or change the order by some property of datagrid. Means there are some properties like 'DisplayIndex' in datagridview where we can select the index of the column.
Surendra Patil
7-Oct-13 5:45am
View
Hi BulletVictim,
Here is the scenario,
I am populating the data from the database. I want have the functionality where user is capable of selecting the columns which user want to see and change the order according to his context/preference. I am able to hide /unhide the column according to the user selection. But I am not able to change the order.
Example:
Let's say, I have Column1,Column2, Column3, Column4, Column5 from the database and I have some icons like 'View', 'Print' in one column which will be fixed at left most side. Now user want to see Column1 Column2 Column3 with tools in the order Column3 Column1 Column2. I can't set the autogeneratecolumns to true. So what should be done on this?
Surendra Patil
27-Sep-13 4:14am
View
Thanks for your suggestion. Can you explain with some example.
Surendra Patil
26-Sep-13 0:00am
View
Expression= Expression.or(Student.Aggregate(false, (curr, next)=> curr.or(line=>line.std==next.Std && line.student==next.Student));
Here next is list of students.
This is the code they have used.
Surendra Patil
25-Sep-13 23:45pm
View
HI Matt,
Actually they are building expression tree and later the point they are compiling it.
The tree forming is done with the help of aggregate function. In which each time it's checking for Std && Student combination multiple times (ex. (Std==8 && Student==1) || (Std==8 && Student==2)). But I want to check it only once for Std and once std matches, i want to check for student in it. like(ex. Std==8 && Student IN(1,2)). Here it's checking for std only once and then student in it.
Surendra Patil
25-Sep-13 10:28am
View
Deleted
I want to build lambda expression tree. Currently the query code is building is very time consuming. Each time it's checking for Std and Student. Actually it should check only once for std and then the student from that std.
Like, currently it is always checking like below:
Std==8th && student==student1
st==8th && student==student 2
I want the logic like,
std==8th && student In(student1, student2).
Means instead of checking std all the time, just check it once then look for student from that std. Same for other std.
Surendra Patil
25-Sep-13 10:26am
View
Something like,
Select Name, Age from Studend Where (Std=8 and StudentID In(student1, student2, student3))
OR (Std=9 and StudentID IN (student1, student2, student3))
Surendra Patil
25-Sep-13 10:14am
View
this won't help. Bcaz, this will only check for 1 student. I wan to check for 3 students with matching std.
Surendra Patil
25-Sep-13 10:12am
View
I want to build lambda expression tree. Currently the query code is building is very time consuming. Each time it's checking for Std and Student. Actually it should check only once for std and then the student from that std.
Like, currently it is always checking like below:
Std==8th && student==student1
st==8th && student==student 2
I want the logic like,
std==8th && student In(student1, student2).
Means instead of checking std all the time, just check it once then look for student from that std. Same for other std.
Something like,
Select Name, Age from Studend Where (Std=8 and StudentID In(student1, student2, student3))
OR (Std=9 and StudentID IN (student1, student2, student3))
Show More