|
Hi!
I just solved my problem with your mentioned technique. I was missing some thing.....my mistake! Thanks a lot for help..
Regards,
Affan Ahmad Toor
|
|
|
|
|
Hi,
This is kind of something I was trying to do. Can you help me out here. Here is the sample of my code.
DataSet ds = new DataSet();
string sql;
sql = @"SELECT lastName,firstName,MiddleName,LoginName,Passwd,ReadOnly,Updates,Deletes,Inserts,OTCPriviledge FROM Users ";
SqlDataAdapter da = new SqlDataAdapter(sql, conString);
da.Fill(ds, "Users");
//dataGridView1.DataBindings.Clear();
dataGridView1.DataSource = ds.Tables["Users"];
DataTable dt = ds.Tables["Users"];
CheckBox chkbox = new CheckBox();
...
..
------------------------------------------------------------------------------
I want the following columns to be checkbox where loaded into the dataGridView.
ReadOnly,Updates,Deletes,Inserts,OTCPriviledge
|
|
|
|
|
Hello,
I've written an ActiveX for IE in VS2005 C# .Net 2.0.
It supports RfID and GPS via COM-Port.
On my machine it runs great.
Now I wrote a setup with VS 2005.
I think I'm to set "vsdrpCOMSelfReg" for registering.
But it doesn't work.
It accepts only "vsdrpCOM"
After installation I called it in IE. It dosn't work.
When IE is open and I want to uninstall it by setup - Setup say "no, is in use."
I think, I'm not so far from target?!?
Can anyone help me?
I didn't find an good artikel in the internet.
Thanks a lot.
-- modified at 4:34 Friday 13th April, 2007
Additional:
In my IE I see the ActiveX in AddOns, but as File is listed "mscoree.dll"
What's that?
"Herausgeber" / Publisher is emty.
Maybe, it helps you.
Thanks a lot.
-- modified at 6:30 Friday 13th April, 2007
|
|
|
|
|
Hello guys in this forum .
in some programs i download as free trial , i saw some Api(s) calls written in ansi C and in C++ , these Api(s) enable me to get some information from the installed program or inject to it commands to be executed once i refer to these Apis in my application , so the question is:
how can i develop an application and expose some Api(s) like that for other developers to use to communicate with my application ??????
Thank you very much
Human knowledge belongs to the world.
|
|
|
|
|
The best way for people to communicate with your app is through WP_COPYDATA messages, it's simple and it's easy to impliment.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
So please can you give me one example or any tutorial for this my friend , i will be so grateful .
Human knowledge belongs to the world.
|
|
|
|
|
this[^] was the third hit on a google search of C# WM_COPYDATA, and would also have come up if you searched this site.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How do I suspend and resume all the threads of another process using C# for which I know the Process Name?
--
LPV
|
|
|
|
|
There's a class named ProcessControl. With it you can pause/continue and start/stop the process
|
|
|
|
|
Hello forum is dere is no one to solve the query posted by me 2 hrs later "regarding adding bullets to word document through c# code"
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Hello roel, well my intentions r not hurt the dignity od the member of forum but As i expect lot from this forum that why i feel litlle bit embaresment whan i didnt recieve any reply.
Can u plz help me in the same?
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
You do know that people here are volunteers don't you? You should also know that most of us have real paying jobs that come first. You have to have some patience in these things.
Also, please don't use txtspk in forums.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
It's still visible, no need to repost. Remember that people in the US are asleep, and the service is free, so you need to just wait until someone answers you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Remember that people in the US are asleep, and the service is free
Regards,
Satips.
|
|
|
|
|
|
Good blog Colin. Captures the reasons eloquently.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thank you - however someone didn't like the link as they voted down my post. Oh, well...
|
|
|
|
|
I think the drive by's are leaking out of the lounge.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi, Im trying to change the look/style of my datagridview control. Is there a way to change the color, border etc for specific cells. Id like every cell that doesnt contain any data to have the same color as my form without any border and cells containing data to have a white background and sunken into the form so that they appear as normal textboxes?
|
|
|
|
|
Hi,
Maybe the answer for your problem is no.
Datagridview doesn't still support for formatting any discrete cells.
DefaultGridCellStyle property is designed to format a column or all columns of datagridview.
It seem to be a solution or an answer.
|
|
|
|
|
So im not able to change the border for a single cell but for a specific column? how do you do that? /thanks
|
|
|
|
|
Certainly you can change the color of each cell in row databound event !!! you can access these information and set the proper color
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi,
I have an DataGridView with total of 14 columns. Two of those columns are Images.
The application is supposed to run 24/7. The grid is constantly refreshed from background worker with new data.
New rows are added programatically into datatable which is datasource of binding source that is grid data source. Also, periodically (approx. every 30 min.) whole table is refreshed with query from SQL server.
After approximately more than 12 hrs of non stop working the grid slows down as I have more than 100.000 records displayed.
I have found that when its slows down, I just hide the image columns, the grid starts to act normaly, but then when I return those columns visible status to true, everything slows down again.
I have tried everything. Bounded images from datasource, images from cell formating event, virtual mode, really everything.
Any ideas?
Thanks in advance.
damir@iit.com.hr
|
|
|
|
|
Hi,
DataGridView is a ... . I have suffered something similar. I tried to load a 33000 rows datatable and it were to slow loading.
My solution (and maybe yours) is create a new user control (datagridview with buttons to scroll up/down one by one and by one page) that envolves the datagrid but I have implemented my own datasource. When I set a dataset as a datasource, the control segments the datatable to load only the rows that I can see (10-15). Then, when I scroll down it loads the next group of rows.
It works good and is not very difficult. And the load and the scroll time have been reduced. Good luck!
|
|
|
|
|
Thanks for your answer,
I've allready tought about such solution and I like it. But the problem is not in the number of records. The problem is with image columns.
Yesterday I have tried my last desperate atempt to solve the problem and it works.
Here is what I have done:
When datatable refresh background worker executes (approx. every 4 seconds), then I execute the following code also (but not allways, let say every 60 min.):
int index = this.dispatchstatusImageAllCol.Index;
int displayindex = this.dispatchstatusImageAllCol.DisplayIndex;
bool visible = this.dispatchstatusImageAllCol.Visible;
int width = this.dispatchstatusImageAllCol.Width;
string name = this.dispatchstatusImageAllCol.Name;
string hdr = this.dispatchstatusImageAllCol.HeaderText;
this.gridAll.Columns.Remove(this.dispatchstatusImageAllCol);
this.dispatchstatusImageAllCol = new DataGridViewImageColumn(); // 1. most important line
this.dispatchstatusImageAllCol.DisplayIndex = displayindex;
this.dispatchstatusImageAllCol.Visible = visible;
this.dispatchstatusImageAllCol.Width = width;
this.dispatchstatusImageAllCol.ContextMenuStrip = this.gridAllMenuStrip;
this.dispatchstatusImageAllCol.HeaderText = "";
this.dispatchstatusImageAllCol.Name = name;
this.dispatchstatusImageAllCol.ReadOnly = true;
this.dispatchstatusImageAllCol.Resizable = DataGridViewTriState.True;
this.dispatchstatusImageAllCol.HeaderText = hdr;
this.gridAll.Columns.Insert(index, this.dispatchstatusImageAllCol); // 2. important line
This is probably the proof that there is a memory management problem with DataGridViewImageColumn.
|
|
|
|