|
i thought i doen's excist.. but it's so strange.. 'cause a normal datagird had the currentrowindex. what is so different to a datagrid or datagrid view.
i put your code in my project..
<br />
int rowIndex = dBANBM_T075_BORGTOCHTDataGridView.CurrentCell.RowIndex<br />
and he give's me the following error:
(There is no row at position 3.)
my code to read the row into a textbox =
<br />
testdb1DataSet DSet = e.DSet;<br />
DataGridView grid = e.Grid;<br />
int row = e.Row;<br />
<br />
textBox1.Text = e.DSet.Tables[0].Rows[e.Row]["T075_BORGTOCHTNUMMER_1"].ToString();<br />
|
|
|
|
|
hi,
my previous reply for that particular error message.
if you want to get a value from gridview you could use something like this
textbox1.Text = myGridView[RowIndex]["T075_BORGTOCHTNUMMER_1"].Value.ToString();
the error mentioned in your last mail related to your dataset not with datagridview...
good luck.
Where there is a will,there is a way.
|
|
|
|
|
i really feeling noob right now .. but..
The name 'RowIndex' does not exist in the current context
code =
<br />
testdb1DataSet DSet = e.DSet;<br />
DataGridView grid = e.Grid;<br />
int row = e.Row;<br />
<br />
textBox1.Text = grid[RowIndex]["T075_BORGTOCHTNUMMER_1"].Value.ToString();<br />
think i should use something like
<br />
int RowIndex = CustomRow;<br />
but then i get the error:
No overload for method 'this' takes '1' arguments
|
|
|
|
|
hi ,
textBox1.Text = grid["T075_BORGTOCHTNUMMER_1",row].Value.ToString();
sorry man, i wrote just on the fly..didnt check the syntax.
good luck.
Where there is a will,there is a way.
|
|
|
|
|
eh it works great..
<br />
textBox1.Text = grid["dataGridViewTextBoxColumn1", row].Value.ToString();<br />
i used this and it works!
only one question left..
what is the big difference between a datagrid or datagridview..
cause in some other project (made with visual studio 2003) i use a datagrid and the currentrowindex does work..
many thanks
|
|
|
|
|
change the code to this:
int rowIndex = dBANBM_T075_BORGTOCHTDataGridView.CurrentRow.Index
Thanks
Rastgar
|
|
|
|
|
Hi
I have two applications running simultaneously, from one application i want to raise event or notify second application to do something. both applications are using same db, but putting flag there will result in pooling. can someone point me to some good article concerning this.
Thanks
Shajeel
|
|
|
|
|
You can use PostMessage API function.
Best regards, Alexey.
|
|
|
|
|
Too dangerous i would have to hook a IMessageFilter in Message Queue and i dont know which message to pass, if i set it some arbitrary message windows might send that message too, is there no easy way.
Thanks for help
Shajeel
|
|
|
|
|
|
Public Function ExportModule(ByVal ModuleID As Integer)
As String Implements
DotNetNuke.Entities.Modules.IPortable.ExportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
very urgent
sanjeev
|
|
|
|
|
public string ExportModule(int ModuleId) : DotNetNuke.Entities.Modules.IPortable.ExportModule {
}
---
b { font-weight: normal; }
|
|
|
|
|
giving error
at : its saying ; expected
|
|
|
|
|
My bad, I didn't reflect on the fact that it was a method, not a class. Just put the inheritance on the class, and name the methods the same as the interface methods they implement.
public class whatever : DotNetNuke.Entities.Modules.IPortable {
public string ExportModule(int ModuleId) {
}
}
---
b { font-weight: normal; }
|
|
|
|
|
the whole code that i want to convert is as:
If you could convert plz .
Public MustInherit Class ShopList
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
Implements Entities.Modules.IPortable
Implements Entities.Modules.ISearchable
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Public ReadOnly Property ModuleActions() As _
DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _
Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions
Get
Dim Actions As New _
Entities.Modules.Actions.ModuleActionCollection
Actions.Add(GetNextActionID, _
Localization.GetString( _
Entities.Modules.Actions.ModuleActionType.AddContent, _
LocalResourceFile), _
Entities.Modules.Actions.ModuleActionType.AddContent, _
"", _
"", _
EditUrl(), _
False, _
Security.SecurityAccessLevel.Edit, _
True, _
False)
Return Actions
End Get
End Property
Public Function ExportModule(ByVal ModuleID As Integer) _
As String Implements _
DotNetNuke.Entities.Modules.IPortable.ExportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
Public Sub ImportModule(ByVal ModuleID As Integer, _
ByVal Content As String, _
ByVal Version As String, _
ByVal UserID As Integer) _
Implements DotNetNuke.Entities.Modules.IPortable.ImportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Sub
Public Function GetSearchItems( _
ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _
As DotNetNuke.Services.Search.SearchItemInfoCollection _
Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
End Class
|
|
|
|
|
hi
you have to implement the interface in the class definition i.e
public class myclass : DotNetNuke.Entities.Modules.IPortable
then implement all methodes and properties from this interface
in your class
regards
joe
|
|
|
|
|
the whole code that i want to convert is as:
If you could convert plz .
Public MustInherit Class ShopList
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
Implements Entities.Modules.IPortable
Implements Entities.Modules.ISearchable
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Public ReadOnly Property ModuleActions() As _
DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _
Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions
Get
Dim Actions As New _
Entities.Modules.Actions.ModuleActionCollection
Actions.Add(GetNextActionID, _
Localization.GetString( _
Entities.Modules.Actions.ModuleActionType.AddContent, _
LocalResourceFile), _
Entities.Modules.Actions.ModuleActionType.AddContent, _
"", _
"", _
EditUrl(), _
False, _
Security.SecurityAccessLevel.Edit, _
True, _
False)
Return Actions
End Get
End Property
Public Function ExportModule(ByVal ModuleID As Integer) _
As String Implements _
DotNetNuke.Entities.Modules.IPortable.ExportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
Public Sub ImportModule(ByVal ModuleID As Integer, _
ByVal Content As String, _
ByVal Version As String, _
ByVal UserID As Integer) _
Implements DotNetNuke.Entities.Modules.IPortable.ImportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Sub
Public Function GetSearchItems( _
ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _
As DotNetNuke.Services.Search.SearchItemInfoCollection _
Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
End Class
|
|
|
|
|
Hello,
I am using an ActiveX control in my form application of C#.
I want that this application should be restricted up to UI support only and all the operation(like Drawing) on this ActiveX control should be handled by a separate ClassLibrary application.
To obtain this i took a global object of ActiveX control in my class library application and initialised it in the FormLoad() of C# form application.
But it is saying a type mismatching in assigning the object.
Please help me to come out of the problem or if u can suggest any other way to fulfill the requirement, i ll appreciate it.
Gajesh Mangal
Pune(India)
|
|
|
|
|
Hi,
i have one class i compiled.In file dialog all the dll's of different classes are there if i choose one dll then the corresponding class name and all its public methods should be displayed then it will show all the public methods is it posible, if posible how can we achive this in c#
|
|
|
|
|
Stop flooding !
I answered this question twice ! If you don't understand, tell me "what you can't understand !"
And, finally you must read this first !
Best regards, Alexey.
|
|
|
|
|
Hello,
I have made my application with SQL Server 2005 Express (C# Windows Application.) . Now, I have made a copy of the application in different folder and I copied the .MDF file and Now When I run that application, I do some change in the .mdf database and I close. After that, when I open another version of the application which is located in different folder, I see that, the .MDF database is updated with the changes I made in the other version of the application even though I copied another instance of the .MDF file in that directory. Why is this happening ? Cant I isolate all .MDF files so that one database is not being affected by others ?
Thanks
emran
|
|
|
|
|
Have a look at Bob Tabor's video tutorial available from Microsoft's SQL Server 2005 Express pages (streaming video) for an overview of security and network connectivity
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Hi,
I have one problem, i.e i have one class, within that class so many public and other methods are there now my requirement is that i want to display the public method names can you tell how can i achieve this in C#
|
|
|
|
|
Try this:
<br />
MethodInfo[] infos = myClass.GetType().GetMethods(BindingFlags.Public);<br />
for (int i = 0; i < infos.Length; i++)<br />
{<br />
Console.WriteLine(infos[i].Name);<br />
}<br />
Best regards, Alexey.
|
|
|
|
|
Hello everybody
Please help me and suggest me on my problem,,,,,,,,,,,,,,
Actually I have a windows application(Devloped in asp.net 2005) connected with the remote databse (sql server 2005)..which I can access through the internet………………….
The requirement now is to secure my data in between ..that is the transportation of data should be secure ..so that no one can access it in between the network..
I know that sql server provide security to encrypt the data but I need the data security in the network. is it possible by some ways?
I hope u got the point…
Please reply. as I am waiting for it
|
|
|
|