16,018,353 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 .NET 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 bhavikadb (Top 26 by date)
bhavikadb
9-Mar-18 6:53am
View
Can you give some example links for the same? and also do i need to have VS2015 and Above or any VS will work
bhavikadb
2-Aug-16 2:31am
View
Query string is not secure and need to pass a clear text.
bhavikadb
30-Jun-16 7:26am
View
Thanks you RickZeeland for the solution. I got a solution earlier but now I'm stuck between event handling for a comboboxcolumn as I have two comboboxcolumn in a grid.
What I Have tried is:
private void dgvArtWork_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if (dgvArtWork.CurrentCell.ColumnIndex == 14 && e.Control is ComboBox)
{
ComboBox comboBox = e.Control as ComboBox;
comboBox.SelectedIndexChanged += adColumnComboSelectionChanged;
}
else if (dgvArtWork.CurrentCell.ColumnIndex == 16 && e.Control is ComboBox)
{
ComboBox comboBox = e.Control as ComboBox;
comboBox.SelectedIndexChanged += logoColumnComboSelectionChanged;
}
}
private void adColumnComboSelectionChanged(object sender, EventArgs e)
{
var currentcell = dgvArtWork.CurrentCellAddress;
var sendingCB = sender as DataGridViewComboBoxEditingControl;
DataGridViewComboBoxCell cel = (DataGridViewComboBoxCell)dgvArtWork.Rows[currentcell.Y].Cells[16];
DataGridViewComboBoxCell celAD = (DataGridViewComboBoxCell)dgvArtWork.Rows[currentcell.Y].Cells[14];
DataTable dsMaster = new DataTable();
string item = dgvArtWork.Rows[currentcell.Y].Cells[5].Value.ToString();
string size = dgvArtWork.Rows[currentcell.Y].Cells[6].Value.ToString();
string ad = sendingCB.EditingControlFormattedValue.ToString();
//string ad = dgvArtWork.Rows[currentcell.Y].Cells[14].FormattedValue.ToString();
cn.Open();
SqlDataAdapter adp = new SqlDataAdapter("Select Logo from ArtWorkMaster where CustCode='" + txtCustCode.Text + "' and AD='" + ad + "' and item='" + item + "' and size='" + size + "'", cn);
adp.Fill(dsMaster);
adp.Dispose();
cn.Close();
for (int i = 0; i < dsMaster.Rows.Count; i++)
{
cel.Items.Add(dsMaster.Rows[i].ItemArray[0]);
}
}
private void logoColumnComboSelectionChanged(object sender, EventArgs e)
{
var currentcell = dgvArtWork.CurrentCellAddress;
var sendingCB = sender as DataGridViewComboBoxEditingControl;
//DataGridViewComboBoxCell cel = (DataGridViewComboBoxCell)dgvArtWork.Rows[currentcell.Y].Cells[18];
//DataGridViewComboBoxCell celAD = (DataGridViewComboBoxCell)dgvArtWork.Rows[currentcell.Y].Cells[14];
DataTable dsMaster = new DataTable();
string item = dgvArtWork.Rows[currentcell.Y].Cells[5].Value.ToString();
string size = dgvArtWork.Rows[currentcell.Y].Cells[6].Value.ToString();
string ad = dgvArtWork.Rows[currentcell.Y].Cells[14].Value.ToString();
string logo = sendingCB.EditingControlFormattedValue.ToString();
cn.Open();
SqlDataAdapter adp = new SqlDataAdapter("Select Logo from ArtWorkMaster where CustCode='" + txtCustCode.Text + "' and AD='" + ad + "' and item='" + item + "' and size='" + size + "'", cn);
adp.Fill(dsMaster);
adp.Dispose();
cn.Close();
}
The problem is whenever I select a item from any combobox it fires both the event.
Please can you help we with it
bhavikadb
18-Dec-15 5:33am
View
Added Example and Expected Result
bhavikadb
18-Dec-15 5:27am
View
it has password field as well but I have only written needed columns for query
bhavikadb
18-Dec-15 5:15am
View
I want foldername when a user login to the application
bhavikadb
7-Dec-15 7:26am
View
Got the looping of the JSON. thanks alot mate
bhavikadb
7-Dec-15 7:16am
View
Hey Got the Output was Misspelling the Object Name
bhavikadb
7-Dec-15 7:11am
View
Your Code is Getting Proper Values But I Don't Know Where I'm going wrong. Anyways thanks alot. and how can I loop through the json for storing each value in DB
bhavikadb
7-Dec-15 7:03am
View
I have echo $json in the code that only gives me the Above JSON Structure
bhavikadb
7-Dec-15 6:55am
View
yes I replaced it with a "0"
bhavikadb
7-Dec-15 6:49am
View
Its still giving me blank values
bhavikadb
7-Dec-15 6:35am
View
Yes I ran it and its giving me blank values and only one row is inserted with blank values
bhavikadb
26-Oct-15 0:41am
View
Thank you KrunalRohit for your answer. Now Since i have written
android:duration="10000"
android:repeatMode="reverse"
android:repeatCount="infinite"
in blink.xml it doesn't open next intent. So I changed repeatCount to Zero(0). Now it runs perfectly but when i write code in onStartAnimation which downloads code from server the next intent is open after the given duration in blink.xml. So what should i do to run the splash screen till all the data is downloaded?
bhavikadb
12-Oct-15 11:58am
View
Yes I have Installed both CRRuntime 32msi and 64msi
bhavikadb
9-Oct-15 5:20am
View
Thanks alot for your brief description and a small tutorial. Thank you
bhavikadb
8-Oct-15 7:40am
View
what is dd?
bhavikadb
23-Sep-15 7:38am
View
can u please give me the code for it I am very new to json
bhavikadb
23-Sep-15 6:15am
View
when I print it in Log it gives me "Exist" if the email is registered and returns max_id if the email is not registered
bhavikadb
3-Sep-15 1:00am
View
Can you guide me for the same I'm very new to Android
bhavikadb
30-May-15 4:57am
View
Thanks alot for the answer it worked but now i have one more complexity here what i want is i only want to get some records say only 15 records but in the same manner.
For example i want first 15 records and when i press load more next 15 and old 15 and so on... but with the above output
bhavikadb
16-May-15 3:24am
View
from a popup window on pgHome.aspx there is a button which calls this jquery function
bhavikadb
16-May-15 3:21am
View
function PDFCreator() {
var id = $("#Catid").val();
var optionselected = $('input[name=type]:checked').val();
console.log("Selected="+optionselected);
var from1 = $("#from").val();
console.log("FROM="+from1);
var col = "";
var row = "";
var itemtype="";
var catname = "";
var orientation = "";
var toemail=$("#txtEmail").val();
var subject=$("#txtSub").val();
var notes=$("#txtNotes").val();
if (optionselected == "small") {
col = "3";
row = "5";
itemtype = "true";
orientation = "P";
}
else if (optionselected == "medium") {
col = "2";
row = "4";
itemtype = "true";
orientation = "P";
}
else if (optionselected == "large") {
col = "1";
row = "3";
itemtype = "true";
orientation = "P";
}
else if (optionselected == "individual") {
col = "1";
row = "1";
itemtype = "true";
orientation = "P";
}
closeDowloadDiaLog();
window.open("pgPdfCreate.aspx?id=" + id + "&col=" + col + "&row=" + row + "&itemtype=" + itemtype + "&catname=" + catname + "&optionselected=" + optionselected + "&orient=" + orientation + "&from=" + from1+"&toemail="+toemail+"&subject="+subject+"¬es="+notes, "PDF Creation", "width=500,height=500");
}
bhavikadb
9-May-15 1:44am
View
Thanks alot
bhavikadb
7-May-15 3:56am
View
Thanks a lot psima. I also want the same output depending on other columns for example i have Item,Design and Size as other columns so how can i get the same result with where item,design and size are also the condition for it. this condition can have multiple values so using "IN" query we can achieve but m not getting the same result
bhavikadb
5-May-15 9:17am
View
can u please give me some example on it
Show More