Click here to Skip to main content
15,921,905 members
Home / Discussions / C#
   

C#

 
GeneralOwnerDraw TreeView Pin
Nnamdi Onyeyiri22-Aug-02 21:34
Nnamdi Onyeyiri22-Aug-02 21:34 
GeneralOverriding the 'X' button on a form Pin
Rodney S. Foley22-Aug-02 19:38
Rodney S. Foley22-Aug-02 19:38 
GeneralRe: Overriding the 'X' button on a form Pin
navinnx22-Aug-02 20:24
navinnx22-Aug-02 20:24 
GeneralRe: Overriding the 'X' button on a form Pin
Stephane Rodriguez.22-Aug-02 20:51
Stephane Rodriguez.22-Aug-02 20:51 
GeneralRe: Overriding the 'X' button on a form Pin
Rodney S. Foley22-Aug-02 21:00
Rodney S. Foley22-Aug-02 21:00 
QuestionDataGrid, to bind or not to bind? Pin
Luis Alonso Ramos22-Aug-02 16:49
Luis Alonso Ramos22-Aug-02 16:49 
AnswerRe: DataGrid, to bind or not to bind? Pin
Stephane Rodriguez.22-Aug-02 20:49
Stephane Rodriguez.22-Aug-02 20:49 
GeneralRe: DataGrid, to bind or not to bind? Pin
Luis Alonso Ramos23-Aug-02 4:21
Luis Alonso Ramos23-Aug-02 4:21 
StephaneRodriguez wrote:
All in all, none of the approaches are really worth it

I was playing with it yesterday before going to bed, and I got something pretty good going on. I created manually a dataset, then a table in it, and some columns (product code, price, description, unit price, price).

Then I created a grid table style (or whatever is called) and added 5 columns mapping to the table columns, with localized text and making the last three readonly.

On the CurrentCellChanged event, I walk every row in the dataset.Tables[0].Rows collection and for each product code, fill in the description and price. If there is a row without product code, I remove the row.

At the end, when I want to get the data, I just enumerate the rows again in the table in the data set and that's it.

I admit it's not as straight forward as I would have thought, but in all it took me about 150 lines of code and two or three hours, so it's not that much either.

I even wrote a little test app (I didn't want to start everything in my real application), and if you're interested I could e-mail it to you. It still has some little bugs (it does not work exactly as I wish it worked) but they don't seem hard to fix.

Thanks very much!

-- LuisR

──────────────
  Luis Alonso Ramos
  Chihuahua, Mexico
  www.luisalonsoramos.com

"Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein
Generalgetting location of schema used Pin
James McCutcheon22-Aug-02 13:08
James McCutcheon22-Aug-02 13:08 
Questioncom? Pin
imran_rafique22-Aug-02 10:36
imran_rafique22-Aug-02 10:36 
AnswerRe: com? Pin
David Stone22-Aug-02 10:46
sitebuilderDavid Stone22-Aug-02 10:46 
GeneralUsing MS WebBrowser AX Control under .NET Pin
tamas22-Aug-02 9:50
tamas22-Aug-02 9:50 
GeneralRe: Using MS WebBrowser AX Control under .NET Pin
Stephane Rodriguez.24-Aug-02 6:56
Stephane Rodriguez.24-Aug-02 6:56 
GeneralRe: Using MS WebBrowser AX Control under .NET Pin
Anonymous28-Aug-02 3:00
Anonymous28-Aug-02 3:00 
GeneralSerialization/Deserialization Using Sockets Pin
dwebster22-Aug-02 9:41
dwebster22-Aug-02 9:41 
GeneralRe: Serialization/Deserialization Using Sockets Pin
David Stone22-Aug-02 10:13
sitebuilderDavid Stone22-Aug-02 10:13 
GeneralRe: Serialization/Deserialization Using Sockets Pin
dwebster22-Aug-02 10:58
dwebster22-Aug-02 10:58 
GeneralRe: Serialization/Deserialization Using Sockets Pin
David Stone22-Aug-02 11:07
sitebuilderDavid Stone22-Aug-02 11:07 
GeneralRe: Serialization/Deserialization Using Sockets Pin
dwebster23-Aug-02 5:51
dwebster23-Aug-02 5:51 
GeneralRe: Serialization/Deserialization Using Sockets Pin
David Stone23-Aug-02 6:55
sitebuilderDavid Stone23-Aug-02 6:55 
GeneralRe: Serialization/Deserialization Using Sockets Pin
dwebster23-Aug-02 7:36
dwebster23-Aug-02 7:36 
GeneralRe: Serialization/Deserialization Using Sockets Pin
David Stone23-Aug-02 8:10
sitebuilderDavid Stone23-Aug-02 8:10 
GeneralWindows Form Designer Woes Pin
Nnamdi Onyeyiri22-Aug-02 9:22
Nnamdi Onyeyiri22-Aug-02 9:22 
GeneralGetting Autonumber field value Pin
Luis Alonso Ramos22-Aug-02 8:53
Luis Alonso Ramos22-Aug-02 8:53 
GeneralChanging an object's display value Pin
leppie22-Aug-02 8:51
leppie22-Aug-02 8:51 

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.