Click here to Skip to main content
15,908,020 members
Home / Discussions / C#
   

C#

 
GeneralRe: using directive Pin
DavidNohejl24-Jul-05 4:31
DavidNohejl24-Jul-05 4:31 
GeneralRe: using directive Pin
Dave Kreskowiak24-Jul-05 4:37
mveDave Kreskowiak24-Jul-05 4:37 
QuestionOutlook 2003 Add-In with C#? Pin
fcn][Stampede24-Jul-05 2:07
fcn][Stampede24-Jul-05 2:07 
AnswerRe: Outlook 2003 Add-In with C#? Pin
Brian Delahunty24-Jul-05 2:20
Brian Delahunty24-Jul-05 2:20 
Generalnmake for c# Pin
Mingzhi_8624-Jul-05 1:11
Mingzhi_8624-Jul-05 1:11 
GeneralRe: nmake for c# Pin
Michael P Butler24-Jul-05 2:12
Michael P Butler24-Jul-05 2:12 
GeneralPopulate values in data grid based on few conditions Pin
lovelylooney23-Jul-05 23:14
lovelylooney23-Jul-05 23:14 
GeneralRe: Populate values in data grid based on few conditions Pin
Alomgir Miah24-Jul-05 11:30
Alomgir Miah24-Jul-05 11:30 
Hope this helps,


Subscribe to DataTable.RowChanged event. In the event handler, check for the

DataRowAction.Add.

Then depending on the values of Product ID , set the values of Token# and License#.

Then call DataTable.AcceptChanges()

Here is some code snippet, please change accordingly

Private myTable As DataTable

Private Sub [AddHandler]()
myTable = CType(datagrid1.DataSource, DataTable)
AddHandler myTable.RowChanged, AddressOf Me.myDataTable_Changed
End Sub

Private Sub myDataTable_Changed _
(ByVal sender As System.Object, ByVal e As System.Data.DataRowChangeEventArgs)
Console.WriteLine("Row Changed", e.Action, _
e.Row.Item(datagrid1.CurrentCell.ColumnNumber))
End Sub




Live Life King Size
Alomgir Miah
GeneralClass... Arrays... Collections... Arg! Pin
MNiece23-Jul-05 17:29
MNiece23-Jul-05 17:29 
GeneralRe: Class... Arrays... Collections... Arg! Pin
Rob Graham23-Jul-05 18:23
Rob Graham23-Jul-05 18:23 
GeneralRe: Class... Arrays... Collections... Arg! Pin
MNiece25-Jul-05 2:23
MNiece25-Jul-05 2:23 
GeneralRe: Class... Arrays... Collections... Arg! Pin
Rob Graham25-Jul-05 3:25
Rob Graham25-Jul-05 3:25 
GeneralDatagrid Pin
Srinivas Jonnalagadda23-Jul-05 7:45
Srinivas Jonnalagadda23-Jul-05 7:45 
GeneralRe: Datagrid Pin
Christian Graus23-Jul-05 11:02
protectorChristian Graus23-Jul-05 11:02 
GeneralRe: Datagrid Pin
Srinivas Jonnalagadda23-Jul-05 13:27
Srinivas Jonnalagadda23-Jul-05 13:27 
GeneralRe: Datagrid Pin
Christian Graus23-Jul-05 13:50
protectorChristian Graus23-Jul-05 13:50 
GeneralRe: Datagrid Pin
Srinivas Jonnalagadda23-Jul-05 16:02
Srinivas Jonnalagadda23-Jul-05 16:02 
GeneralRe: Datagrid Pin
Srinivas Jonnalagadda23-Jul-05 17:47
Srinivas Jonnalagadda23-Jul-05 17:47 
GeneralRe: Datagrid Pin
Christian Graus24-Jul-05 12:51
protectorChristian Graus24-Jul-05 12:51 
GeneralArrayList of value types Pin
Luis Alonso Ramos23-Jul-05 6:53
Luis Alonso Ramos23-Jul-05 6:53 
GeneralRe: ArrayList of value types Pin
KaptinKrunch23-Jul-05 7:26
KaptinKrunch23-Jul-05 7:26 
GeneralRe: ArrayList of value types Pin
Wyxlwiis23-Jul-05 7:45
Wyxlwiis23-Jul-05 7:45 
GeneralRe: ArrayList of value types Pin
Luis Alonso Ramos23-Jul-05 8:27
Luis Alonso Ramos23-Jul-05 8:27 
GeneralRe: ArrayList of value types Pin
DavidNohejl23-Jul-05 8:45
DavidNohejl23-Jul-05 8:45 
GeneralRe: ArrayList of value types Pin
Luis Alonso Ramos23-Jul-05 9:38
Luis Alonso Ramos23-Jul-05 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.