15,911,039 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 krish.krish (Top 34 by date)
krish.krish
27-Dec-16 1:45am
View
what i wrote code for wpf is correct or not
krish.krish
27-Dec-16 1:44am
View
can you say whats the wpf c# code for this windows c# code
int id = Convert.ToInt32(datagrid.CurrentRow.Cells[0].Value);
krish.krish
27-Dec-16 1:41am
View
i got this error
Object reference not set to an instance of an object.
krish.krish
20-Dec-16 5:50am
View
drv value is null
krish.krish
20-Dec-16 5:42am
View
please help me i want datagrid selected row data in another form with filling
krish.krish
20-Dec-16 5:40am
View
see my code
switch (formname)
{
case "Company Master":
{
Company editcompany = new Company();
DataRowView drv = dgvCommon.SelectedItem as DataRowView;
editcompany.cmpID = Convert.ToInt32((drv["CompanyId"] ?? String.Empty).ToString());
editcompany.operation = Operation;
NavigationService navService = NavigationService.GetNavigationService(this);
navService.Navigate(editcompany);
break;
}
case "Customer Master":
{
Customer editcustomer = new Customer();
DataRowView drv = dgvCommon.SelectedItem as DataRowView;
editcompany.cusid= Convert.ToInt32((drv["cusid"] ?? String.Empty).ToString());
editcustomer.operation = Operation;
NavigationService navService = NavigationService.GetNavigationService(this);
navService.Navigate(editcustomer);
break;
}
}
krish.krish
20-Dec-16 5:36am
View
i already have switch case statement.
krish.krish
20-Dec-16 5:31am
View
again its showing same error on that line
krish.krish
3-Nov-16 5:59am
View
no its shows error in cuurent row
krish.krish
10-Jun-15 5:13am
View
Deleted
in list box have mp3 files wav files like that.this files are having properties like author,year,composer,title,genre etc. in mu combo box have these properties only .if i choose author name it will only diaplay that selected author files only in listbox.
please help me.
krish.krish
10-Jun-15 5:10am
View
Deleted
ok then i have another doubt
i want to add one combobox if i select option in combo box it will filter the file and display in listbox.
what i have to do?
krish.krish
10-Jun-15 4:39am
View
Deleted
please say what i have to do in this to update that file information
public void SetNewListBoxValue(string newValue)
{
//listBox1.Items.Add(newValue);
listBox1.Update();
}
krish.krish
29-Jan-15 2:23am
View
i want to apply that vadidateuser function in my mvc5.
then my view page code there in above
how i will seperate that validate code in view model controller
krish.krish
29-Jan-15 2:07am
View
this is my view page view-Indexpage
@model IEnumerable<PDMS.Model.User>
@{
//Layout = "~/Views/Shared/_UserLogin.cshtml";
Layout = null;
}
@{
ViewBag.Title = "Index";
}
<html>
<body>
<link rel="stylesheet" type="text/css" href="css/login.css" />
<div id="bodywrapper">
</div>
<div align="center" id="wrapper">
<br />
<div class="header">Personal <span>Data</span> Management <span>System </span></div>
<br />
<div class="login">
@{
Html.BeginForm("Index", "User", FormMethod.Post);
}
@Html.TextBox("txtUserName")
<br />
<br />
@Html.TextBox("txtPassword")
<br />
<br />
<input type="submit" value="Login" /> <br />
@{
Html.EndForm();
}
</div>
</div>
</body>
</html>
krish.krish
26-Sep-14 5:37am
View
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Model;
using BusinessLogic;
using DataAccess;
using Provider;
namespace NewApplication_1
{
public partial class frmDeliveryEntryForm : Form
{
private IDelivery iDelivey = new DeliveryBL();
private IItems iitems = new ItemsBL();
List<delivery> deliveries = new List<delivery>();
public frmDeliveryEntryForm()
{
InitializeComponent();
}
private void DeliveryEntryForm_Load(object sender, EventArgs e)
{
List<items> items=new List<items>();
items = iitems.GetAllItems();
DataGridViewComboBoxColumn comboboxColumn = (DataGridViewComboBoxColumn)dgv.Columns["Items"];
comboboxColumn.DataSource = items;
comboboxColumn.ValueMember ="Id";
comboboxColumn.DisplayMember = "Name";
fillGrid();
}
private void fillGrid()
{
dgv.DataSource = null;
dgv.Rows.Clear();
deliveries.Clear();
deliveries = iDelivey.GetAllDelivery();
foreach (Delivery del in deliveries)
{
DataGridViewRow dr = (DataGridViewRow)dgv.Rows[0].Clone();
dr.Cells[0].Value = del.Id;
dr.Cells[1].Value = del.Customer.Name;
if (del.Item != null)
{
dr.Cells[2].Value = del.Item.Name;
dr.Cells[3].Value = del.Item.Id;
}
dr.Cells[4].Value = del.Quantity;
dr.Cells[5].Value = del.DeliveredQuantity;
dgv.Rows.Add(dr);
}
}
private void GridtoObject()
{
deliveries.Clear();
foreach (DataGridViewRow dr in dgv.Rows)
{
if (dr.Cells[0].Value != null)
{
Model.Delivery del = new Model.Delivery();
del.Id = Convert.ToInt16(dr.Cells[0].Value);
Model.Customer cus = new Model.Customer();
cus.Name = dr.Cells[1].Value.ToString();
del.Customer = cus;
Model.Items item = new Model.Items();
if (dr.Cells[2].Value != null)
{
item.Name = dr.Cells[2].Value.ToString();
item.Id = Convert.ToInt16(dr.Cells[3].Value);
}
del.Item = item;
if (dr.Cells[4].Value != null)
del.Quantity = dr.Cells[4].Value.ToString();
if (dr.Cells[5].Value != null)
del.DeliveredQuantity = dr.Cells[5].Value.ToString();
deliveries.Add(del);
}
}
}
private void button1_Click(object sender, EventArgs e)
{
GridtoObject();
foreach (Delivery del in deliveries)
{
int NoofRowsAffected = iDelivey.CreateDelivery(del);
}
}
private void dgv_DataError(object sender, DataGridViewDataErrorEventArgs e)
{
}
}
}
krish.krish
27-Aug-14 6:43am
View
thank you so much it working
krish.krish
27-Aug-14 6:42am
View
thank you very much it working............
krish.krish
27-Aug-14 6:34am
View
that it not checking again again same error
krish.krish
27-Aug-14 6:18am
View
i want to show if i give wrong password it should show that the password is incorrect,and like if i give wrong username it should show that username is incorrect and like if i give username and password is wrong it have to show invalid username,password.
i want 3 type of error msgs.
did you undestand
krish.krish
27-Aug-14 6:13am
View
but here that msg box is not showing
krish.krish
27-Aug-14 6:12am
View
IF i give username like admin and password like admin it will go to next form, so datarow is having data correct. if i give wrong password or wrong username it have to show msg box
krish.krish
27-Aug-14 6:08am
View
YES
krish.krish
27-Aug-14 6:07am
View
Deleted
YES
krish.krish
20-Aug-14 3:47am
View
i did
not start anythink
krish.krish
20-Aug-14 3:05am
View
I need an educational app. that will be explaining core subjects in pictorial format.
krish.krish
20-Aug-14 2:43am
View
in that projects
school subjects are listed, if one student in 5th std means that student will get their subjects and pick them and learn that subjects in website.
krish.krish
20-Aug-14 2:42am
View
how to create website in c# webapplication?
krish.krish
20-Aug-14 2:42am
View
Deleted
how to create website in c# webapplication?
krish.krish
19-Jun-14 5:31am
View
i refer that, i have to know in what section i have to implement nhibernate. (Richard MacCutchan)
krish.krish
25-Nov-13 0:35am
View
error is
'MessageBox' is not declared. It may be inaccessible due to its protection
Type 'database' is not defined.
krish.krish
18-Nov-13 0:41am
View
thanks OriginalGriff
krish.krish
14-Nov-13 4:42am
View
Deleted
i studied that 3tier concept , but i can't understand.
krish.krish
13-Nov-13 1:07am
View
IF I COMPILE MY PROGRAM IT SHOWS ERROR LIKE COULD NOT FIND SCHEMA INFORMATION FOR THE ELEMENT supportedruntime,version,sku
krish.krish
12-Nov-13 1:32am
View
thank u so much
Show More