Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGRidView RowDataBound Processing
Message
From
31/07/2012 15:08:07
 
 
To
31/07/2012 12:59:02
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01548706
Message ID:
01549588
Views:
29
Hey Bonnie,

Thanks for the reply.

Yes, I looked at these and other candidate events also but none really were appropriate, usually due to firing consistency.

I just used a different methodology to accomplish my goal. I still think that technically using a "RowDataBound" event would be most efficient for this task but since it does not exist I just skin the cat another way. Nevertheless, I find it strange that there is no event of this type for Windows grids. Ya gotta love MS. :-)

Bill

>Hi Bill,
>
>I know this thread is a few weeks old, but I thought I'd put in my 2 cents, although you said that you've already found a way to do this.
>
>Have you looked at using the DataGridView's CellFormatting and CellParsing events? I never used Grids all that much, but for bound controls other than grids, I usually relied on the Binding's Format and Parse events (which won't work for a grid, because it seems that there's no Binding object). Those two Cell events seem to be useful for that kind of functionality.
>
>~~Bonnie
>
>
>
>
>>Ok, I gotcha. During the data binding process, whan a data row columns data are bound to the DataGridView Cells, I want to be able to do some processing on an individual Cell or Cells based on the data that is being bound. E..g if a given Cell boolean value is false, I might want to perform some operation on another Cell or Cells, like (!)ReadOnly.
>>
>>In an ASP.NET GridView this operation can be accomplished in the RowDataBound event. There seems to be no equivalent in the Windows Forms DataGridView so I am trying to determine how I would do this. Internet searches on this topic have turned up anemic results so I am not sure if this is possible.
>>
>>I can formulate alternatives but they may not be as efficient so I wanted to see if I am just missing something (obvious) here.
>>
>>Bill
>>
>>>I couldn't answer because I don't know what you mean by "process DataGridView rows."
>>>
>>>
>>>
>>>>>Well, I think I have been specific. :-) I want to know if there is a way to process DataGridView rows as they are bound to the DataGridView, similar to how it can be done in an ASP.NET GridView RowDataBound event. If this cannot be done, then that is not what I would like, but is ok. I can, and already have, come up with other ways to accomplish my task. But this would be the most efficient.
>>>
>>>However, I'm not quite sure why I can't get an answer to my original question. I'm not asking someone to solve my business problem, just to find out if there is a way to achieve this specific function.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform