|
You can add an unbound column to your datagrid and use a bool columnstyle for that unbound column. You can download a sample showing how to add an unbound column from:
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q787q
Clay Burch
www.syncfusion.com
|
|
|
|
|
Hello Clay,
Thanks a lot.
That's a pretty good link.
I will try it and I let you know when I get it to work.
Thanks again.
Anderson
Anderson F.
afraga22@hotmail.com
|
|
|
|
|
We offically have the ASP/ASP.NET message board beat by 18 messages, we are on our way....
Nick Parker
|
|
|
|
|
Ok, this makes me feel really stupid, but when I am looking at the code view in VS.NET I have the two drop down boxes at the top. This is very similar to VB6 where the left combo box lists all the objects(i.e. - buttons, grids, labels) and the right most combo box will list all methods and properties associated to what is selected in the left combo box. Why do I only see my forms for my project listed in the left combo box? Where are my objects that are on that form. How can I see all the methods and properties available to those object on my form? Please someone point me in the right direction. Thanks
Nick Parker
|
|
|
|
|
On the top right is a dialog box where you can choose class view, solution explorer or resource view ( the last is useless, I've not seen anything there yet ,and I've added resources ). That's where you'll find your methods and classes.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
Thanks,
Now I probably sound like I am complaining(I am), but is there any way that I can move this or have it view the methods and properties the "old-fashioned way" or should I just give in?
Anyway, Thanks again Christian
Nick Parker
|
|
|
|
|
VB.NET uses those drop down boxes as you expect, so the answer is yes, but you would have to code in VB.NET
Not that that is a bad thing
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Yes, you can drag/redock and size that dialog.
I'd also guess you'd get something like the old Wizard bar if you right clicked in the toolbar area and checked what other toolbars you can make visible.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
Thanks,
I will probably keep it the way it is right now, thanks agian.
Nick Parker
|
|
|
|
|
What would be the "old-fashioned way"?
After allot of erratic *docking-window* rubber-band snapping, swearing, and some crying, I finally have the IDE back in a state where it almost feels like a *better* Visual Studio 6.
|
|
|
|
|
Nick Parker wrote:
This is very similar to VB6 where the left combo box lists all the objects(i.e. - buttons, grids, labels) and the right most combo box will list all methods and properties associated to what is selected in the left combo box.
This is what I meant, I will be fine with how it is now, I was only inquiring.
Nick Parker
|
|
|
|
|
That’s ok; I am coming from Visual C++ IDE, not the VB IDE, same problems, different perspective.
|
|
|
|
|
CP has a couple of nice examples of how to download a file via HTTP. Can someone point me to a code snippet that demonstrates how to send a "HEAD" request for a resource (eg: http:/foo.com/mumble.html) and read the returned result? Thanks,
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ooops - I meant to post this in the C++ forum. Sorry!
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I am deriving a new control from ListBox in which I wish to
intercept certain windows messages.
From what I can see, I need to override WndProc(ref m message) and then examine m.Msg. The trouble is, constants for Windows Messages such as WM_VSCROLL, do not seem to be defined anywhere.
Am I working along the right lines?
Rob.
|
|
|
|
|
Unfortunately the Windows messages aren't defined anywhere in .NET; you'll have to pull the values out from the appropriate header file from the Platform SDK.
HTH,
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
outside this cool board?!!?
|
|
|
|
|
The DOTNET Mailing List is the best resource I've found outside of CodeProject
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
hi!
I ask this few days ago. but no one answert me..
therefore I ask over again..
what I want to do....
when an user checked one item in the ListView the other items must come
hidden.
or:
when an user checked one item in the ListView the other items must come
hidden and after the user cheched the second time
at this item all items was visible....
(I will make it to allowed the user to checked only 1 item)
the even I will use is:
private void displayCustomerListView_ItemCheck(object sender,System.Windows.Forms.ItemCheckEventArgs e)
{
for (int i = 0; i < displayCustomerListView.Items.Count; i++)
{
if(!(displayCustomerListView.Items[i].Index == e.Index))
{
//and here must stand the code that make the Items[i] checkbox unvisible or unable to check
}
}
}
have anyone an idea how I can make this?
(at best would help me a code sample in C#)
big THX!!
PAWEL
|
|
|
|
|
I want that the user make one choise from the list view. not multiple
choice.
Pawel
|
|
|
|
|
To uncheck an item:
displayCustomerListView.Items[i].Checked = false
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
If only one item can be selected why are you using the CheckListBox in the first place? Its very nature implies that you can select multiple items.
If you only want to allow one item to be selected you should use a normal ListBox or create your own control that does what the CheckListBox does but uses Radio buttons instead of check boxes.
James
Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971
|
|
|
|
|
Does anybody else got that problem?
When I use two controls in a panel, one with docking style 'Fill' and another with docking style 'Bottom' (for example, a text field and a HScrollbar), I can write text in the text area that gets behind the scroll!! e.g. the text area "thinks" it can paint in an area that actually belongs to the scrollbar.
???
Inbal
|
|
|
|
|
Sure, right click the ScrollBar and select 'Send to Back'.
|
|
|
|
|
hiho,
i think those properties are a nice new thing in c#. is there a way to have an array as a property? indexers are on a by-class-basis (so to say), so is there anything between?
imagine a table-class. i want something like
myTable.RowName[6]="Street";
myTyble.Cell[3,7] = 87;
so, how to define RowName or Cell
of course i can do it the old-fashioned way using member-functions a la
myTable.SetRowname(6,"Street")
or the other way around, make the array public, but then the user of my class is responsible for the range-checking.
ok, the question in short again: can i have an array as a property? if yes, how?
thx in advance.
:wq
|
|
|
|