Posts by Alan César • 59 points
5 posts
-
1
votes1
answer33
viewsA: Keywords As and Is in C#
"is" and "as" are keywords used to convert data types. "is": checks whether an object is compatible with a data type and returns true or false. Ex: if(obj is Product) {}. "as" tries to convert an…
-
0
votes2
answers615
viewsA: How to play something similar to CSS in Windows Form?
CSS is specifically for HTML and cannot be applied in Windows Form. You can do something similar using XML. Check this link:…
-
0
votes1
answer59
viewsA: Load Fields through Dropdownlist
marianac_costa, You can make this change in the grid Itemdatabound. void Item_Bound(Object sender, DataGridItemEventArgs e) { if (e.Item is GridDataItem) { txtHistorico_desta.InnerText =…
-
-1
votes1
answer105
viewsQ: Dispose in Unit Of Work
I have a web application and am using repository* and Unit Of Work. In some examples I saw that after performing some change operation in the bank we should call the method Dispose(). I instancei…
-
1
votes3
answers886
viewsA: Load Datagridview with Mysql
João Víctor, the problem is in the type of method public datatable Carregaraluno() Change to public DataTable CarregarAluno() { string retorno = ""; string sql = "select * from alunos";…