15,899,313 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 SantoshRohinSantosh (Top 41 by date)
SantoshRohinSantosh
28-Jul-12 2:31am
View
Thanks for the reply,but there is no issue with the behind code it is running successful on local machine.
SantoshRohinSantosh
29-May-12 5:46am
View
thank you i'l try this.
SantoshRohinSantosh
29-May-12 5:45am
View
Ya I have tried that as well ,I mean the event is not getting fired,I have debug it but the execution is not coming in this event. please help
SantoshRohinSantosh
29-May-12 4:59am
View
Ya i have tried that Dhanushka but it is not working.
SantoshRohinSantosh
29-May-12 4:36am
View
thank you for the ans.
SantoshRohinSantosh
29-May-12 4:22am
View
Thanks for the solution but there can be no of products ,so should I use the scrip in each text box???
Please elaborate the solution.
SantoshRohinSantosh
22-May-12 5:45am
View
Hello friends please help
SantoshRohinSantosh
27-Apr-12 3:21am
View
NO sir I didnt found this use full please give me other suggesstions
SantoshRohinSantosh
13-Apr-12 2:37am
View
Okay Arun Thanks I'l try this.
SantoshRohinSantosh
2-Apr-12 5:04am
View
thank you Deepak but just tell me that what should I do for database back up?
SantoshRohinSantosh
2-Apr-12 5:03am
View
And what about data base???
SantoshRohinSantosh
7-Feb-12 6:43am
View
No one there???
SantoshRohinSantosh
7-Feb-12 6:33am
View
Do i need to include any assembly for that?
SantoshRohinSantosh
7-Feb-12 5:45am
View
Ya but compiler is not accepting that.
SantoshRohinSantosh
7-Feb-12 5:39am
View
Thanks dude but I am not doing project in Asp.net
It is stand alone project.
Can you please help me?
SantoshRohinSantosh
7-Feb-12 3:31am
View
Ya it have value.
SantoshRohinSantosh
7-Feb-12 3:31am
View
Deleted
Ya it has value.
SantoshRohinSantosh
7-Feb-12 3:24am
View
Ya I debug values are coming right but still I am getting exception.
SantoshRohinSantosh
6-Feb-12 2:31am
View
Okay thank you for the explanation. I'l try by self.
SantoshRohinSantosh
6-Feb-12 1:16am
View
Can you edit in my code I am that perfect sir.
SantoshRohinSantosh
6-Feb-12 0:47am
View
Thanks Abhinav. I want to use list or any other option then array because now it is working fine because the data is limited in database but when data will increase in database then array will not be an good option.So can you suggest me any other option?
SantoshRohinSantosh
6-Feb-12 0:33am
View
Thank you so much Yogesh It is working.
SantoshRohinSantosh
2-Feb-12 23:44pm
View
Thanks yogesh but this is not working ,I am using SQL server so can you suggest me any other idea?Please.
SantoshRohinSantosh
2-Feb-12 7:41am
View
How to gate date and month only?
SantoshRohinSantosh
27-Jan-12 4:04am
View
I am building windows application sir.
SantoshRohinSantosh
27-Jan-12 3:56am
View
You just tell me GRIFF how i'l give title to the datagridview?
SantoshRohinSantosh
27-Jan-12 3:48am
View
Will you please elaborate.
SantoshRohinSantosh
27-Jan-12 1:47am
View
ya i did but not working
SantoshRohinSantosh
27-Jan-12 1:21am
View
If i do that it is giving me error.
Input string is not in correct format.
SantoshRohinSantosh
25-Jan-12 9:37am
View
thanks it work
SantoshRohinSantosh
25-Jan-12 9:37am
View
thanks it work
SantoshRohinSantosh
25-Jan-12 8:48am
View
What is sqlstatement in this?
SantoshRohinSantosh
25-Jan-12 8:38am
View
ClsConnection.Conn.Open();
getbatchid();
string cid = "a";
string s = "select Student_Id from tbstudent_batchmaster where Batch_Identity='" + batchid + "'";
SqlCommand cmd = new SqlCommand(s, ClsConnection.Conn);
SqlDataReader sdr = cmd.ExecuteReader();
while (sdr.Read())
{
cid = sdr.GetValue(0).ToString();
Int32.TryParse(cid, out actval);
//ArrayList attribut = new ArrayList();
//attribut.Add("actval");
//fillstudentdata();
//ClsConnection.Conn.Close();
//ClsConnection.Conn.Open();
dtstudent.ColumnHeadersVisible = true;
dtstudent.RowHeadersVisible = false;
dtstudent.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
string selectCommand1 = "select FName+' '+LName as Name from ADD_Master where ADD_No='" + actval + "'";
SqlDataAdapter sqlDataAdapter1 = new SqlDataAdapter(selectCommand1, ClsConnection.Conn);
SqlCommand cmd1 = new SqlCommand();
cmd1.CommandText = selectCommand1;
DataSet ds1 = new DataSet();
sqlDataAdapter1.Fill(ds1);
//ClsConnection.Conn.Close();
dtstudent.DataSource = ds1.Tables[0];
DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn();
cb.HeaderText = "test";
cb.Name = "test";
cb.Visible = true;
cb.Width = 40;
dtstudent.Columns.Add(cb);
dtstudent.Columns[0].Visible = false;
dtstudent.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dtstudent.Refresh();
dtstudent.DataSource = null;
dtstudent.Rows.Clear();
dtstudent.Columns.Clear();
}
ClsConnection.Conn.Close();
SantoshRohinSantosh
25-Jan-12 8:27am
View
HiIf i do that then it is giving me error
ExecuteReader requires an open and available Connection. The connection's current state is closed.
SantoshRohinSantosh
25-Jan-12 8:25am
View
Thanks Caralin but that is not working.Can u suggest any other option?
SantoshRohinSantosh
25-Jan-12 7:54am
View
Thanks manognya
But if i close the connection then it is giving me following error.
There is already an open DataReader associated with this Command which must be closed first.
SantoshRohinSantosh
25-Jan-12 4:23am
View
Okay
SantoshRohinSantosh
25-Jan-12 2:12am
View
I got the solution,it is like this
foreach (DataGridViewRow row in datagridallstudents.Rows)
{
DataGridViewCheckBoxCell cell = row.Cells["SELECT"] as DataGridViewCheckBoxCell;
//select is the header name.
ClsConnection.Conn.Close();
if (cell.Value != null)
{
MessageBox.Show(row.Cells[0].Value.ToString());
}
Thanks Pashad
SantoshRohinSantosh
25-Jan-12 1:47am
View
Thanks pashad but i am not using aspx page i am doing standalone project so please help me in doing that.
SantoshRohinSantosh
25-Jan-12 1:35am
View
This method is not giving the exact count .It is giving me 0 count .
SantoshRohinSantosh
25-Jan-12 1:33am
View
Thanks Amit but there is no such event GridView1_RowDataBound
Can u tell me some other mehtod to do it.
Show More