|
I tried that and it didn't work. I just don't understand why only the selected cells become visible I put a lot of work into the form and I'd prefer not to do it all again, so if anyone has any ideas - please let me know! Thanks.
|
|
|
|
|
just delete control from the form and try to add with same name to preserve the coding done on the variable. VS behaves odd at times. when this happens i used to close all the visual studio and start over again. will work like a charm.
Jibesh.V.P
India
|
|
|
|
|
Good idea. I deleted the dgv, saved and closed Visual Studio. I re-opened it, added a new dgv, and the same problem exists. Very strange...
|
|
|
|
|
what are all the dgv events you subscribed for? just trying out all the possibilities? in normal case it should work. mght be there is some code running behind creating this odds
Jibesh.V.P
India
|
|
|
|
|
All I do is create the dgv, and call it by button click using
dataGridView1.DataSource = dv;
There are no dgv events, such as click, etc.
|
|
|
|
|
Hi
try debugging the gridview. In rowdatabound event, see the visibility of the columns. This may give some clue how.
Naina
Naina
|
|
|
|
|
From what I've read there is no RowDataBoundfor dgv in Windows Forms Apps, although I could be wrong. I did add a watch to the dgv, and everything looks normal...
|
|
|
|
|
I figured it out! I had the dgv font color set to white! So the text didn't show up against the background unless it was highlighted...
Thanks to everyone that helped!
|
|
|
|
|
Oh man. see we keep asking and you said didnt do anything.. arhh!!!! nauty boy.. have a
good luck
Jibesh.V.P
India
|
|
|
|
|
I didn't. I have other controls with white text, so white must be set as a default color somehow for new controls.
Thanks again though. Great help from all! I'll enjoy my !
|
|
|
|
|
Hi dear friend. i am try to develop intelligent character recognition (icr) software using c# windows application. but not success ICR software. please help me dear friends
|
|
|
|
|
Rameshkannabravo wrote: intelligent character recognition (icr) software using c# windows application
Any character recognition routine should be in a library and completely separate from any particular application.
|
|
|
|
|
See here[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
i have more than 55000 Customer and i wanna Fill Combobox with this customers quick .. there is any way
to load form quickly and to enter Combobox quickly
** i use background worker but this hang my form and my app is run slowly can i use threading and how
i want solutin plz
private void backWork_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if (e.Cancelled)
{
}
else
{
FillComboBox();
cmb3ameelname.Focus();
Loadform = true;
cmb3ameelname.SelectedItem = null;
cmbLandTele.SelectedItem = null;
}
}
private void backWork_DoWork(object sender, DoWorkEventArgs e)
{
CusLis = CustomerManger.SelectCustomersAll();
}
void FillComboBox()
{
cmbameelname.DataSource = CusLis;
cmbameelname.DisplayMember = "CustName";
cmbameelname.ValueMember = "CustId";
}
frm_load()
{
this.backWork.DoWork += new DoWorkEventHandler(this.backWork_DoWork);
this.backWork.RunWorkerCompleted+=new RunWorkerCompletedEventHandler(this.backWork_RunWorkerCompleted);
this.backWork.RunWorkerAsync();
}
|
|
|
|
|
Mohamed Nabawy wrote: have more than 55000 Customer and i wanna Fill Combobox with this customers
That's a little bit "too much" to be useful as a dropdown-list. I strongly recommend a popup with a datagridview.
Mohamed Nabawy wrote: . there is any way
to load form quickly and to enter Combobox quickly
Databinding is usually a bit slower than slamming the items in there manually.
Mohamed Nabawy wrote: i use background worker but this hang my form and my app is run slowly can i use threading and how
i want solutin plz
Threading doesn't make it quicker. You'd load the list async from the DB, but databinding still has to be done on the mainthread. Binding 55000 items to a ComboBox, just to let the user select one, is a bit overkill. Things would really speed up if you convert it to a readonly textbox with a "set"-button. Open a new form (modal), and then load those 55k items. In a virtualized datagridview, if performance is an issue.
|
|
|
|
|
Eddy Vluggen thanks
|
|
|
|
|
To add to what Eddy said - it's a very silly idea to put that many items into a control of any sort if you expect the user to have to pick one of them himself.
Think about it as a user: how are you going to find the one item you want out of 55,000? How much time are you going to waste looking?
Find a better solution! Search, filter, whatever - but not "here's a big list - you sort it out".
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
|
As others have said 55,000 items in a combobox is a HORRIBLE idea. How is anybody going to find an item in there? Find a better design.
|
|
|
|
|
HORRIBLE idea
thanks SledgeHammer01
|
|
|
|
|
Hello Everyone,
I am trying to access a page which is secure behind a login system. I do have credentials, but I am trying to automate this as I have to download this page every month.
When I try to use HTTPWebRequest, it doesn't works. I tried to investigate this using Fiddler as well, and here is the log:
Protocol Host URL
HTTP TUNNEL to subdomain-x.site.com/needed-page.html <- My request
HTTP TUNNEL to subdomain-y.site.com
:
.
HTTPS subdomain-y.site.com some-url
What I am trying is:
1. Create Web Request
2. Create Cookie Container
3. Create Network Credentials
4. Create Headers
5. Get Response
However, this returns the Login Page itself. Any help will be highly appreciable.
|
|
|
|
|
Impossible to say with the info you've given. You need to analyze the login page source code to see how the credentials are sent back to the server and how the actual page you want to access is authenticated. If its just a random SSL page, you just need to fill in the HTTPWebRequest.Credentials object.
|
|
|
|
|
Hi All,
Could you please assist me in saving and retrieve images to MySQL database using an Image Path.
Let me know, if you require any additional information to assist me.
Thank you,
Nirmal
|
|
|
|
|
You need to explain what assistance you need. If you want to save the actual image, then save it as a byte stream or blob (whatever is the MySQL equivalent). If you want to save the file's location then it is just a character string.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thank you for your response.
I am saving the image as LongBlob. But retrieving an image through search function, i get parameter not valid error.
byte[] bytesofphotosretrive;
bytesofphotosretrive = (byte[])r["photo"];
MemoryStream mst = new MemoryStream(bytesofphotosretrive);
{
frm1.pictureBox5.Image = Image.FromStream(mst);
}
Please assist.
Regards,
Nirmal
|
|
|
|