|
And what have you tried? Google will return thousands of results for paging datagridview.
vikas shukla wrote: please send code
No.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Please do not post the same question in more than one forum. Especially rude questions.
Pick one forum for your question and post there but please also read the forum guidelines (at the top of the page) before doing so.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
You have replied to the wrong person!
I am not the one asking the question! You should open the first message in the thread and hit reply there, otherwise the OP might not see your answer.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
|
Hi,
I am not 100% sure if this has been answered elsewhere, I did some searches both in the Code Project Articles and Message Boards and Google, but don't feel I've come across my answer yet. May have been something I missed.
I have an IDE-style application which includes a text editor window. The interface is Tabbed MDI and I already have that implemented by Weifen Luo's excelent WinForms.Docking library. Each MDI child window in my program contains an instance of the ICSharpCode.TextEditor control.
I know that the ICSharpCode.TextEditor control provides a splitter, but the UI is not quite what I am looking for.
What I want to do is add dynamic splitters, a la the MFC documentation's definition: "A dynamic splitter window typically is used to create and scroll a number of individual panes, or views, of the same document. The framework automatically creates an initial pane for the splitter; then the framework creates, resizes, and disposes of additional panes as the user operates the splitter window's controls." How can I do the same thing in C# Windows Forms?
You know what I am talking about...for a CSplitterWnd with 2 columns and 2 rows, the window would start off unsplit, with a little tiny button above the top of the vertical scroll bar and a little tiny button to the left of the left edge of the horizontal scroll bar, and then you can drag either button to turn it into a full-fledged splitter bar and split the window into up to 4 "panes."
Any hints on how I might accomplish this? I am brewing my own Java IDE, that's why I am asking.
Thank you!
Sincerely Yours,
Brian Hart
|
|
|
|
|
If you are using ICSharpCode.TextEditor, the only way you can do it is with ICSharpCode.TextEditor. I use this control in my app but not sure if it has splitter feature.
|
|
|
|
|
I know but as I said, it doesn't do the splitter quite the way I want. I want the little handles the user can drag which rest on top of and to the left of the vertical and horizontal scroll bars, respectively, and then if you drag them they split the window
Sincerely Yours,
Brian Hart
|
|
|
|
|
I don't think this[^] is the complete answer, but it may point you in the right direction.
|
|
|
|
|
Disclaimer: I'm asking on behalf of a client, and have not witnessed this issue first hand. He has a third party app that produces training media, which his training application presents in a WinForms app through the WebBrowser control.
The interfaces he has been able to access on the WebBrowser control, on the surface of things, don't expose all the information required by the host form to fully integrate with the web application, which is a bit more advanced than basic HTML. He would like to e.g. detect a button click, and information on the state of the web app when that click takes place.
If more is possible that we know with the WebBrowser, please suggest some areas to explore. Otherwise, is there any alternative to the WebBrowser control? Anything from Mozilla that can be hammered into looking like a windows form control but without being so proprietary?
|
|
|
|
|
when you click any hyper link or button it generally navigate to new page or refresh this page.
This event can be got by the navigating event of webbrowser control of .net.
see example. suppose webBrowser1 is added in a windows application.
private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
MessageBox.Show(e.Url.PathAndQuery.ToString());
}
|
|
|
|
|
hi
The default behavior of the DataGridView is that : when the user click on a cell the focus will move to the clicked cell .
I want to modify this behavior , so if the user click on a cell the focus will not move to the clicked cell how can i do that
thanks
|
|
|
|
|
You can make the column read only, it then won't accept the click.
I think you can make the cell read only but you need to do that on the cell paint event (not sure if thats the correct event), then you can evaluate the cell content and change the properties.
If you make the underlying collection (datatable of BindingSource) read only (cannot add/edit/delete) then I believe this will be reflected in the DGV.
There are many ways to kill a cat other than drowning it in milk.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hi Mycroft Holmes
I don't want the value In my underlying Collection to be read only ?
thanks
|
|
|
|
|
If you have some other control you want to keep focus on, you might just have to manually reset it.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
You can disable the full datagridview as you don't want to make it readonly.
dataGridView1.Enabled = false;
|
|
|
|
|
hi every one
I have made an custom DataGridView column which inherits from DataGridViewTextBoxCell ,In have written a custom textBox too which has some properties I had this code so the type is changed to my custom TextBox:
Public Overrides Sub InitializeEditingControl(ByVal rowIndex As Integer, _
ByVal initialFormattedValue As Object, _
ByVal dataGridViewCellStyle As DataGridViewCellStyle)
' Set the value of the editing control to the current cell value.
MyBase.InitializeEditingControl(rowIndex, initialFormattedValue, _
dataGridViewCellStyle)
Dim ctl As CurrencyTextBoxEditingControl = CType(DataGridView.EditingControl, CurrencyTextBoxEditingControl)
ctl.Text = Me.Value.ToString
End Sub
now I want to be able to change some of this custom TextBox via Column properties via designer. I mean that I want to see the cell's Custom TextBox's properties in the Column properties in design time.
how can I do it?
thanks in advanced
|
|
|
|
|
I developed vb.net application it is windows based, my need is in that application worked in LAN, I run the exe file in client desktop computer it is coming error:
A connection was successfully established with the server, but then an error occurred during the per-login handshake. When connecting to SQL server 2005, this failure may be caused by the fact that under the default setting SQL Server does not allow remote connections. (Provider: Named Pipes Provider, error: 0 - No process is the other end of the pipe.)
Franics K Antony
|
|
|
|
|
|
i have two windows form, in one form i have a textbox, in another form,i have a gridview, all i want is how to transfer the data from textbox to gridview after i click the button?
|
|
|
|
|
ganesh kumarrr wrote: all i want is how to transfer the data from textbox to gridview after i click the button?
In the event handler for the button. Take the text from the text box and put it in the gridview.
Or do I misunderstand your question?
|
|
|
|
|
s u are correct, but how to code it?
|
|
|
|
|
ganesh kumarrr wrote: how to code it?
Read the documentation on TextBox and GridView classes. In there you will discover all the properties and methods that will allow you to accomplish this task, plus you will learn all sorts of good things that will help you in the future.
|
|
|
|
|
You're translator is broken
Richard MacCutchan wrote: ganesh kumarrr wrote:
how to code it?
This = snd codz plz
I did like you response though.
Never underestimate the power of human stupidity
RAH
|
|
|
|