16,020,626 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 Visual Basic questions
View Javascript 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 ost3z (Top 31 by date)
ost3z
18-Jun-15 19:34pm
View
your answer is logic what is the best solution for that problem ?
ost3z
18-Jun-15 18:54pm
View
thanks for reply my database folder is under bin folder i really debug my project many time every thing in this form works exactly as i need when i close that form every data lost in this only table not other despite there is no code on close thanks again for u
ost3z
16-Jun-15 8:22am
View
it doesn't work in ms access
ost3z
29-May-15 7:20am
View
Deleted
this my my code
if (dataGridView1.Rows[e.RowIndex].Cells[1].Value != null)
{
string cellValue = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
if (!string.IsNullOrEmpty(cellValue))
{
_bar = cellValue;
PopulateColumns();
dataGridView1.Rows[e.RowIndex].Cells[2].Value = _proname;
dataGridView1.Rows[e.RowIndex].Cells[3].Value = _price;
dataGridView1.Rows[e.RowIndex].Cells[4].Value = _unit;
}
}
i use PopulateColumns(); to access data from data table and pass it to the grid view where it equal dataGridView1.Rows[e.RowIndex].Cells[1].Value . when i use break-point it works correct if i stop break point it repeat the same data in each row despite the value of dataGridView1.Rows[e.RowIndex].Cells[1].Value is not the same ?
ost3z
25-May-15 17:27pm
View
Deleted
thanks all it works with fine i only edit this little code
// CrystalReportSells.ReportSource = cr;
CrystalReportVieweradv crystalReportVieweradv = new CrystalReportVieweradv();
crystalReportVieweradv.crystalReportViewer1.ReportSource = cr;
crystalReportVieweradv.Show();
now it works fine . how can also pass textbox value to the crystl report beside xml file as datasource for the report
ost3z
19-May-15 13:08pm
View
thanks for helping
ost3z
17-May-15 2:53am
View
Inside the gridview when i leave the combox column the value gets clear
ost3z
16-May-15 8:48am
View
thank you too much it worked fine but there is aproblem happened with my combox the value get clear on living the cell
private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
string titleText = dataGridView1.Columns[2].HeaderText;
if (titleText.Equals("proname"))
{
ComboBox cbo = e.Control as ComboBox;
if (cbo != null)
{
cbo.DropDownStyle = ComboBoxStyle.DropDown;
cbo.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
cbo.AutoCompleteCustomSource = AutoCompleteLoad();
cbo.AutoCompleteSource = AutoCompleteSource.CustomSource;
}
}
}
thank again for helping
ost3z
12-May-15 3:38am
View
whats strange ? :-)
ost3z
11-May-15 18:45pm
View
The error accour in second if condition if (!string.IsNullOrEmpty(dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString()); desbite i have value from autocomplete what is the best soulation ?
ost3z
10-May-15 8:45am
View
the strange thing in debugging it works fine 100 % but the other textboxes still have autocomplete the code fire when the columnindex == 2 thats what i need but the others textboxes still autocomplete ????
ost3z
9-May-15 15:23pm
View
thats good thanks i change to index but still (i need three textbox to be editable)
int column = dataGridView1.CurrentCell.ColumnIndex;
string headerText = dataGridView1.Columns[1].HeaderText;
if (dataGridView1.CurrentCell.ColumnIndex == 1)
{
TextBox tb = e.Control as TextBox;
if (tb != null)
{
tb.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
tb.AutoCompleteCustomSource = AutoCompleteLoad();
tb.AutoCompleteSource = AutoCompleteSource.CustomSource;
}
else
{
tb.AutoCompleteCustomSource = null;
}
}
i try it but still the three works as autocomblete desbite i indexed it for index 2 how it can be solved
ost3z
29-Apr-15 8:12am
View
i have gridview which have the data which i need to pass how can i pass them using params how will be
dt.cloumns.add("".oldbetype.varchar), and so on or how will be done
ost3z
29-Apr-15 6:19am
View
how it be done
ost3z
29-Apr-15 2:33am
View
thanks for all i use key leave in stead of keypress and it works fine but can i use enter key in the event key leave or not?
ost3z
28-Apr-15 16:51pm
View
private void txtsearch_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
string Str = txtsearch.Text.Trim();
double Num;
bool isNum = double.TryParse(Str, out Num);
if (isNum)
{
// search by barcode
prd = new BLL();
DataTable dta = new DataTable();
dta = prd.findbybarcode(txtsearch.Text);
txtid.DataBindings.Clear();
txtid.DataBindings.Add("text", dta, "ID");
txtproductname.DataBindings.Clear();
txtproductname.DataBindings.Add("text", dta, "proname");
txtprice.DataBindings.Clear();
txtprice.DataBindings.Add("text", dta, "price");
txtunit.DataBindings.Clear();
txtunit.DataBindings.Add("text", dta, "Unit");
txtcount.Focus();
}
}
}
private void txtsearch_TextChanged(object sender, EventArgs e)
{
txtsearch.AutoCompleteMode = AutoCompleteMode.Suggest;
txtsearch.AutoCompleteSource = AutoCompleteSource.CustomSource;
AutoCompleteStringCollection DataCollection = new AutoCompleteStringCollection();
getData(DataCollection);
txtsearch.AutoCompleteCustomSource = DataCollection;
}
ost3z
28-Apr-15 13:05pm
View
textchanged fired before keypress and stopped key press from working
ost3z
23-Apr-15 17:08pm
View
i use this code
LocalReport report = new LocalReport();
report.DataSources.Add(new ReportDataSource("DataTable1", ds.Tables[0]));
report.ReportEmbeddedResource = "Market.Report1.rdlc";
printDocument1.Print();
datset have values but it print nothing the reporter is empty
beacsuce it cant read the path of Report1.rdlc despite its correct path
i also try that to get the correct path
Application.StartupPath + "\\Report1.rdlc";
but nothing
can any one help ؟؟
ost3z
27-Jul-14 12:07pm
View
my condition is if (ddlTguidedit.SelectedIndex==0) if it the selected from dropdown list itis going to carry out the querry else its going to carry out the other chosie but no sense what should do ? to work fine
ost3z
27-Jul-14 9:55am
View
when i select from drpdownlist the first choise or next chosie the grid still have the same data without change ? it should change on select changed
ost3z
4-Jul-14 9:06am
View
i want to know how kendo will recive data from textbox and then pass it to database for grid it works fine with me asked for textboxes insert update delete ??
ost3z
4-Aug-13 19:45pm
View
thankx for your advice i really do that to follow and know what happened i find that all textboxes pass the old values which load in page load all them doesnt pass the new values and so update happened with the data and so nothing happened the question which i search for why textboxes dont pass the new values ??
ost3z
20-Jul-13 21:10pm
View
i used this links and i will try again thanks for all
http://rollercoasters-bunker.blogspot.in/2008/07/secureencrypted-cookies-in-aspnet-with.html
http://www.c-sharpcorner.com/UploadFile/manishkdwivedi/encrypting-and-decrypting-cookies-in-Asp-Net-2-0/
ost3z
20-Jul-13 16:43pm
View
really i find many answers in Google and examples but i need to now how to use it with cookie utility because i try them but no sense
ost3z
20-Jul-13 14:30pm
View
any suitable one with cookie
ost3z
20-Jul-13 13:44pm
View
first you must know that when i ask a question i searched before and do my best and so when when ask it i really want answer and didint want to waste my time with you and if your time so important why did you waste time to post here ???
ost3z
19-Jul-13 9:00am
View
thankx all for your advice i do by requried field vaidator
ost3z
19-Jul-13 5:41am
View
thanks its really work many thankx for your help
ost3z
18-Jul-13 13:54pm
View
thank you for your reply it never works at all it stopped the calender
ost3z
26-Dec-12 11:36am
View
OK this my first time to participate thanks a lot
ost3z
26-Dec-12 0:03am
View
Deleted
thanks for your reply but the problem that i try it also and still no data display in textbox despite its work correctly if i make breakpoints the function works correct date is found but not display whhhhhhhhhhhhhyy ? this the problem
Show More